Merc Studio Tech Blog
Friday, October 23, 2015
authorize! for update
just realize calling model.update after authorize! is wrong!
the right way is to run an authorize!, then model.assign_attributes, then rerun authorize! again,
and finally model.save
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment