Pundit v2.0.0.beta1 Release Notes
Release Date: 2018-07-04 // over 5 years ago-
๐ฅ Breaking changes
- Only pass last element of "namespace array" to policy and scope. (#529)
- Raise
InvalidConstructorError
if a policy or policy scope with an invalid constructor is called. (#462) - Return passed object from
#authorize
method to make chaining possible. (#385)
Other changes
- โ Add
policy_class
option toauthorize
to be able to override the policy. (#441) - Add
policy_scope_class
option toauthorize
to be able to override the policy scope. (#441) - ๐ Fix
param_key
issue when passed an array. (#529) - ๐ Allow specification of a
NilClassPolicy
. (#525) ๐ Make sure
policy_class
override is called when passed an array. (#475)๐ Use
action_name
instead ofparams[:action]
. (#419)Add
pundit_params_for
method to make it easy to customize params fetching. (#502)