Inspiration taken from #958, #911, and others.
This adds strong parameters support but with some smart defaults. Since strong_parameters really only affects cancan for :create and :update actions, we only apply params for those actions. Further more, by default, we try to run several methods in order:
Further more, you can specify a custom method to run via the param_method option:
load_and_authorize_resource param_method: :my_sanitizer
It is also backwards compatible as if none of the methods are found it will carry on with the legacy way.
I've updated the readme and changelogs if we ever get a 1.6.11.
Strong Parameters Support
+1 @bryanrite this is a nice solution, thanks.