Switched from calling #update to #update_attributes!.

This commit is contained in:
M. Scott Ford 2011-07-28 01:09:25 -04:00
parent 8564055fd1
commit 36914834a1

View File

@ -71,7 +71,7 @@ module Locomotive
def update_attributes(content_type, data) def update_attributes(content_type, data)
attributes = cleanse_attributes(data) attributes = cleanse_attributes(data)
content_type.update(attributes) content_type.update_attributes!(attributes)
end end
def add_or_update_fields(content_type, fields) def add_or_update_fields(content_type, fields)