Godmin v2.0.0 Release Notes
Release Date: 2019-12-06 // almost 4 years ago-
2.0.0
๐ Features
- ๐ Allow skipping authorization per action (#231)
๐ Bug fixes
- ๐ Support namespaced models when generating resources (#181)
Other
- โฌ๏ธ Drop support for Rails 4 (#239)
- ๐ Better policy lookups for namespaced models (#180)
- ๐ Use Pundit for authorization (#180)
- ๐ Rails 6 support (#248) and (#250)
โฌ๏ธ In order to upgrade
- โฌ๏ธ Upgrade to at least Rails 5 and Ruby 2.2.2
- If using an admin engine, create a namespaced model for every resource, inheriting from the main app model
- Replace any
authenticate_admin_user
withauthenticate
- Replace any
skip_before_action :authenticate_admin_user
withprepend_before_action :disable_authentication
- Replace any
rescue_from NotAuthorizedError
withrescue_from Pundit::NotAuthorizedError
Previous changes from v1.5.0
-
๐ Features
- ๐ Support for nested resources (https://github.com/varvet/godmin/pull/189)