mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Tagged 1.0.0
This commit is contained in:
parent
7a4ea22303
commit
582ee78c2b
2 changed files with 10 additions and 2 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,11 +1,19 @@
|
|||
# Pundit
|
||||
|
||||
## 1.0.0 (unreleased)
|
||||
## 1.0.0 (2015-04-19)
|
||||
|
||||
- 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`.
|
||||
- Add `permitted_attributes` helper to fetch attributes from policy.
|
||||
- Add `pundit_policy_authorized?` and `pundit_policy_scoped?` methods.
|
||||
- Instance variables are prefixed to avoid collisions.
|
||||
- Add `Pundit.authorize` method.
|
||||
- Add `skip_authorization` and `skip_policy_scope` helpers.
|
||||
- Better errors when checking multiple permissions in RSpec tests.
|
||||
- Better errors in case `nil` is passed to `policy` or `policy_scope`.
|
||||
- Use `inpect` when printing object for better errors.
|
||||
- Dropped official support for Ruby 1.9.3
|
||||
|
||||
## 0.3.0 (2014-08-22)
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module Pundit
|
||||
VERSION = "0.3.0"
|
||||
VERSION = "1.0.0"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue