Change update_attributes to update
This commit is contained in:
parent
6340e224ed
commit
c7a74c8e7d
4 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ class Supplier < ActiveRecord::Base
|
|||
|
||||
# update existing article
|
||||
elsif status.nil? && article
|
||||
updated_counter += 1 if article.update_attributes(parsed_article)
|
||||
updated_counter += 1 if article.update(parsed_article)
|
||||
listed << article.id
|
||||
|
||||
# delete outlisted article
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue