All Versions
Latest Version
Avg Release Cycle
139 days
Latest Release
279 days ago

Changelog History
Page 2

  • v3.4.1

    September 08, 2014
    • ๐Ÿ›  Fixed issue with migrations being generated without a file extension.
    • โšก๏ธ Updated spec tests to work with Travis CI on Ruby up to 2.1.2 and Rails 4.1.x
    • Made it possible for inheritance of resources.
    • ๐Ÿ›  Fixed small bugs throughout project.
  • v3.4

    January 28, 2014
    • ๐Ÿ›  fixed an initializer bug preventing the rails app to boot
    • โœจ enhanced documentation regarding with_role method (thanks to @vicomte)
    • โž• added select(:id) in SQL subquery used by in method in ActiveRecord adapter (thanks to @ryanaip and @badaboda)
    • ๐Ÿ‘Œ improved speed when removing roles using LIMIT(1) instead of COUNT (thanks to @yankovski)
    • ๐Ÿ›  fixed travis builds for rubinius and mongoid
    • ๐Ÿ›  fixed sanity check running before Rolify.config to ensure roles table exists
    • fixed has_any_role? to work with unsaved records (thanks to @mhw)
    • ๐Ÿ›  fixed specs for Mongoid
  • v3.3

    January 26, 2014
    • ๐Ÿ—„ DEPRECATION NOTICE:Rails 3.1 support dropped: if you use Rails 3.1, please stick to rolify 3.2
    • code cleanup in finders methods
    • generators rewritten entirely. now using ActiveRecord/Mongoid model generator to create Role model
    • โž• added rspec matchers for detailed spec error messages (thanks to @delwyn)
    • ๐Ÿšš clean up specs (thanks to @delwyn), removed subject and let declarations in before(:all) block
    • roles query needs 1 DB hit instead of 1 up to 3 (thanks to @terraplane)
    • โœ‚ remove nil entries from ResourceAdapter#resources_find when using Mongoid adapter (thanks to @daviscabral)
    • ๐Ÿ›  fixed a bug regarding redundant index for Mongoid Role model (thanks to @rschultheis)
    • โž• added support for rolify and resourcify methods on the same model class (specs by @amer)
    • โž• added support for namespaced models (thanks to @intrica)
    • ๐Ÿ›  fixed compatibility issue with squeel when using symbols as role parameters (hint by @f3ndot)
    • โš  now raises a warning in the initializer if migration has not been run
    • โž• add support for primary key different than 'id' for resource Model (thanks to @rafaeldl)
    • ๐Ÿ’Ž Rails 4 (thanks to @adammathys) and ruby 2.0 compliant
    • ๐Ÿ”ง configured travis-ci to run the specs on Rails 3.2/4.0 and Rubies 1.9.3/2.0/rbx/jruby
    • โž• added code climate to check for code smell
  • v3.2

    August 07, 2012
    • ๐Ÿ—„ 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
  • v3.1

    April 06, 2012
    • Mongoid adapter optimization
    • โ™ป๏ธ adapter code refactoring
    • generator now adds the role class name to the rolify method injected in the user class
    • ๐Ÿ›  fixed a bug on the generator when using a 2 words Camel case for the Role class name
    • DEPRECATION NOTICE: has_role and has_no_role have been depecrated. They are replaced by add_role and remove_role
    • some internals cleanup (backward compatible)
    • stop requiring active_record in rolify.rb to prevent other gems ORM detection issue
    • ๐Ÿ›  fixed a bug when removing a role to the user using Mongoid adapter
    • โž• added indexes to generator for mongoid (thanks to @stigi)
    • fixed a bug regarding with_role method on resource classes (thanks to @nfo)
  • v3.0

    April 02, 2012
    • ๐Ÿ‘Œ support for Mongoid
    • roles search on resources on instance level (e.g. Forum.first.roles) and class level (e.g. Forum.with_role("admin", user))
    • โ™ป๏ธ heavy lifting and redesign of the library, code and specs refactoring
    • โœจ enhanced drastically specs coverage: 1001 examples !
  • v2.2.2

    February 17, 2012
    • ๐Ÿ›  fixed another bug occurring when dynamic shortcuts is enabled
    • display now a README file after running the generator to show the next setup steps
  • v2.2.1

    January 24, 2012
    • fixed a backward incompatible change introduced in Rails 3.2 release (find_or_create_by_* generated methods)
  • v2.2

    January 18, 2012
    • ๐Ÿ›  fixed a bug in the initializer file regarding dynamic shortcuts
  • v2.1

    November 30, 2011
    • added syntactic sugar: grant and revoke are aliases for has_role and has_no_role
    • ๐Ÿ’Ž check if RUBY_ENGINE is defined in the gemspec to be able to use jdbc with JRuby for SQLite