Cancancan v1.9.0 Released

34 views
Skip to first unread message

brite

unread,
Jul 20, 2014, 2:56:41 PM7/20/14
to canc...@googlegroups.com
Hey all! Just pushed Cancancan 1.9.0. 

It includes:
  • Some Active Record fixes to work better on Rails 4.1, adding the new "references" keywork when required.
  • Fixes issues with unsanitized parameters for non create and update actions. For example, when sending default values as GET parameters to the new action, Rails would throw a ForbiddenAttributes exception because we were not santitizing the parameters (since we don't save). Now we detect if we will be building the object with user defined parameters and run them through the sanitizer if it exists, regardless of action. Remember, you can customize the particular action's sanitization by providing a method for that action.
  • Some optimizations for using Cancancan in the Grape API framework without the need for monkey patching.
Thanks!
Reply all
Reply to author
Forward
0 new messages