Switched from calling #update to #update_attributes!.
This commit is contained in:
parent
8564055fd1
commit
36914834a1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user