Godmin v2.0.0 Release Notes

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