2014-02-09 03:43:33 -05:00
# Pundit
2014-08-22 07:26:44 -04:00
## 1.0.0 (unreleased)
- Caches policy scopes and policies.
- Explicitly setting the policy for the controller via `controller.policy = foo` has been removed. Instead use `controller.policies[record] = foo` .
- Explicitly setting the policy scope for the controller via `controller.policy_policy = foo` has been removed. Instead use `controller.policy_scopes[scope] = foo` .
2015-03-18 10:50:06 -04:00
- Add `pundit_policy_authorized?` and `pundit_policy_scoped?` methods.
2014-08-22 07:26:44 -04:00
## 0.3.0 (2014-08-22)
2014-04-28 17:00:48 -04:00
- Extend the default `ApplicationPolicy` with an `ApplicationPolicy::Scope` (#120)
2014-07-13 05:07:01 -04:00
- Fix RSpec 3 deprecation warnings for built-in matchers (#162)
- Generate blank policy spec/test files for Rspec/MiniTest/Test::Unit in Rails (#138)
2014-04-28 17:00:48 -04:00
2014-04-06 18:22:38 -04:00
## 0.2.3 (2014-04-06)
2014-02-09 03:43:33 -05:00
2014-04-28 17:00:48 -04:00
- Customizable error messages: `#query` , `#record` and `#policy` methods on `Pundit::NotAuthorizedError` (#114)
- Raise a different `Pundit::AuthorizationNotPerformedError` when `authorize` call is expected in controller action but missing (#109)
- Update Rspec matchers for Rspec 3 (#124)
2014-02-09 03:43:33 -05:00
## 0.2.2 (2014-02-07)
2014-04-28 17:00:48 -04:00
- Customize the user to be passed into policies: `pundit_user` (#42)