rolify v5.3.0 Release Notes

Release Date: 2020-06-01 // 2 months ago
  • 🚀 5.3.0 will be the last version to support Ruby < 2.5 and Rails < 5.2. Support for these will be dropped in the next major release.

    • 🛠 Fix deprecation warning in Ruby 2.7
    • ➕ Add Rails 6 support to migration generator
    • Significant ActiveRecord performance improvements to add_role and without_role
    • 🐎 Mongoid fix and performance improvement and to roles_name
    • 👉 Make it safe to call Thing.with_role(:admin, user) with new record

Previous changes from v5.2.0

    • 🛠 Fix regression in generator around belongs_to options compatibility
    • ⚡️ Update version of database_cleaner
    • Update initializer.rb to include the remove_role_if_empty option and description
    • 👍 Allow inverse_of option on rolify method
    • 🛠 Fix the code-climate-reporter issue that's causing travis to fail
    • ✂ Remove a separate index for the name column
    • 🛠 Fix migration generator for AR 5.x
    • 🛠 Fixed ambiguous column error