Pundit v2.1.1 Release Notes
Release Date: 2021-08-13 // over 1 year ago-
🚀 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)
- ⬇️ Dropped support for RSpec 2 (#615)
Previous changes from v2.1.0
-
🛠 Fixed
- Avoid name clashes with the Error class. (#590)
🔄 Changed
- 0️⃣ Return a safer default NotAuthorizedError message. (#583)