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