rolify v5.3.0 Release Notes

Release Date: 2020-06-01 // 6 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