Using policy_class and a namespaced record now passes only the record when instantiating the policy. (#697, #689, #694, #666)
Changed
Require users to explicitly define Scope#resolve in generated policies (#711, #722)
Deprecated
Deprecate include Pundit in favor of include Pundit::Authorization (#621)
2.1.1 (2021-08-13)
Friday 13th-release!
Careful! The bugfix below (#626) could break existing code. If you rely on the
return value for authorize and namespaced policies you might need to do some
changes.
Fixed
.authorize and #authorize return the instance, even for namespaced
policies (#626)
Changed
Generate application scope with protected attr_readers. (#616)
Removed
Dropped support for Ruby end-of-life versions: 2.1 and 2.2. (#604)
Dropped support for Ruby end-of-life versions: 2.3 (#633)
Dropped support for Ruby end-of-life versions: 2.4, 2.5 and JRuby 9.1 (#676)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pundit from 2.1.0 to 2.2.0.
Changelog
Sourced from pundit's changelog.
Commits
d569083
Release v2.2.0a636019
Merge pull request #722 from varvet/kbs+dgms/test-generators5acf84c
Merge pull request #710 from petergoldstein/feature/add_ruby_3_1_to_travis44cfa73
Require users to explicitly define Scope#resolve54675c6
Merge pull request #717 from drewmoore/update-documentation-for-headless-poli...856d74d
Merge pull request #719 from varvet/kbs/add-documentation-note-to-README3aefb95
Add another note about API documentation67e0dd3
Remove Struct inheritance from headless policy example3c725c7
Merge pull request #708 from MarceloAGuimaraes/update-rubocop4bb0c7d
Removing ruby 2.6 as required version because JRuby jruby-9.2 considers itsel...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)