1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Highlight breaking changes

It's helpful to point out what the breaking updates are when there's a major version change. The list of breaking changes were taken from the response to #554.
This commit is contained in:
Hari Gopal 2018-11-16 14:41:18 +05:30 committed by GitHub
parent 290536f71e
commit aeeaf602ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,16 +10,22 @@ No changes since beta1
## 2.0.0.beta1 (2018-07-04)
### 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 to `authorize` to be able to override the policy. (#441)
- Add `policy_scope_class` option to `authorize` to be able to override the policy scope. (#441)
- Fix `param_key` issue when passed an array. (#529)
- Only pass last element of "namespace array" to policy and scope. (#529)
- Allow specification of a `NilClassPolicy`. (#525)
- Make sure `policy_class` override is called when passed an array. (#475)
- Raise `InvalidConstructorError` if a policy or policy scope with an invalid constructor is called. (#462)
- Use `action_name` instead of `params[:action]`. (#419)
- Add `pundit_params_for` method to make it easy to customize params fetching. (#502)
- Return passed object from `#authorize` method to make chaining possible. (#385)
## 1.1.0 (2016-01-14)