Godmin v2.0.0 Release Notes

Release Date: 2019-12-06 // over 2 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 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

Previous changes from v1.5.0