Merc Studio Tech Blog
Showing posts with label
cancan
.
Show all posts
Showing posts with label
cancan
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)