Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@johanhalse johanhalse released this 06 Dec 05:09
· 45 commits to master since this release

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 with authenticate
  • Replace any skip_before_action :authenticate_admin_user with prepend_before_action :disable_authentication
  • Replace any rescue_from NotAuthorizedError with rescue_from Pundit::NotAuthorizedError