Skip to content

Commit e71da73

Browse files
Merge pull request #492 from cbdr/bugfix/COR-763-Uniqueness-Breaks
COR-763: Uniqueness Breaks When Updating
2 parents 4d9c258 + e2047ad commit e71da73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/content_item_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def update
3333
@content_item = ContentItem.find(id)
3434

3535
transact_and_refresh do
36-
@content_item.update(content_item_attributes)
36+
@content_item.assign_attributes(content_item_attributes)
3737
end
3838
end
3939

0 commit comments

Comments
 (0)