rolify v3.2 Release Notes

Release Date: 2012-08-07 // over 11 years ago
    • ๐Ÿ—„ DEPRECATION NOTICE: Ruby 1.8 support dropped ! Mongoid 3.0 only supports MRI 1.9.3, and HEAD, and JRuby 1.6.0+ in 1.9 mode
    • โœ‚ removed dynamic_shortcuts arguments from the generator
      • to use dynamic shortcuts feature when you're using ActiveRecord, you have to enable it after running rake db:migrate as it relies on the roles table
    • ๐Ÿ‘Œ support for Mongoid 3.x (thanks to @Leonas)
    • ๐Ÿ†• new class methods on the User class to find users depending on roles they have
    • โž• added scopes to Role class to be able to fetch global, class scoped and instance scoped roles for a specific user
    • deletions of n-n relation are unreliable with Mongoid. Removing ids instead (thanks to @nfo)
    • ๐Ÿ‘ has_role? method now supports new instance (i.e. record not saved in the database yet) (thanks to @demental)
    • โž• added association callbacks (before|after)_add, (before|after)_remove on rolify method (thanks to @shekibobo)
    • added ability to pass an array of roles to Resource.with_role(), aliased by Resource.with_roles() (thanks to @lukes)
    • โž• added option to have roles be destroyed by default if parent resource is destroyed (thanks to @treydock)
    • added new method only_has_role? to check if user has only a specific role (thanks to @jalcine)
    • ๐Ÿ‘ better edge cases covering in the specs
    • ๐Ÿ›  fixed a bug regarding the loading order of the railtie when using Mongoid ORM and other gems using initializer files (thanks to @stigi)
    • ๐Ÿ›  fixed double quote syntax when using MySQL
    • ๐Ÿ›  fixed a nasty bug regarding class level queries (thanks to @kamrulhassan)
    • ๐Ÿ›  fixed uninitialized constant error in scopify method
    • ๐Ÿ“š documentation improvement