Permalink
Commits on Jul 31, 2012
  1. more details about Mongoid version and association callback

    refs #91
    [ci skip]
    EppO committed Jul 31, 2012
  2. put a note in the README to warn about the lack of association callba…

    …cks support using Mongoid
    
    refs #91
    EppO committed Jul 31, 2012
  3. Mongoid will support :before_add, after_add, :before_remove, :after_r…

    …emove callbacks only in 3.1 release.
    
    triggering these callbacks only for ActiveRecord for now
    closes #91
    EppO committed Jul 31, 2012
  4. Merge pull request #90 from demental/add_role_to_new_instance

    has_role? usable with new instance
    EppO committed Jul 31, 2012
Commits on Jul 30, 2012
  1. Merge pull request #92 from shekibobo/callbacks

    Allow association callbacks from the rolify method
    EppO committed Jul 30, 2012
  2. dropping support for 1.8

    at least on travis-ci
    EppO committed Jul 30, 2012
  3. added support for Mongoid 3.x

    Leonas committed with EppO Jul 6, 2012
Commits on Jul 27, 2012
Commits on Jul 17, 2012
  1. Allow association callbacks through +rolify+

    This commit includes specs that demonstrate declaring callbacks
    when calling +rolify+ on a User model. This lets us have callbacks
    before/after add/remove_role methods without having to redeclare
    
        has_and_belongs_to_many :roles, :join_table => :users_roles, :after_add => :add_callback ...
    
    Closes #91.
    shekibobo committed Jul 17, 2012
  2. Don't require :role_cname argument for rolify options

    Related to issue #91.
    
    Defaulting :role_cname to 'Role' with a reverse merge instead of
    using it as a default argument allows for more flexible usage
    when passing other options into the +rolify+.
    
    e.g.
    
        rolify :after_add => :after_add_callback
    
    would be allowed now, but before, such a call would require
    
        rolify :role_cname => 'Role', :after_add => :after_add_callback
    shekibobo committed Jul 17, 2012
Commits on Jul 12, 2012
  1. indentation fix

    demental committed Jul 12, 2012
  2. spec with new instance

    demental committed Jul 12, 2012
Commits on Jun 13, 2012
  1. added support for Mongoid for #84

    EppO committed Jun 13, 2012
  2. removed --dynamic_shortcuts argument 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
    fixes #71
    fixes #76
    EppO committed Jun 13, 2012
  3. Merge pull request #84 from lukes/return_multi_roles_for_resource

    Pass an array of roles to Resource.with_role()
    EppO committed Jun 13, 2012
  4. Adding ability to pass an array of roles to Resource.with_role(), ali…

    …ased by Resource.with_roles()
    lukes committed Jun 13, 2012
Commits on Jun 12, 2012
  1. fixed a bug when loading Role class before User class, scopes module …

    …is not loaded yet.
    
    Will have to clean adapter code, this is getting really messy
    fixes #83
    EppO committed Jun 12, 2012
Commits on May 21, 2012
Commits on Apr 26, 2012
  1. edited CHANGELOG for the upcoming 3.2 release

    [ci skip]
    EppO committed Apr 26, 2012
  2. refactored scopes code for Role class

    added a parameter to ask for roles binded to specific resource
    closes #67
    EppO committed Apr 26, 2012
Commits on Apr 25, 2012
  1. fixed specs related to last commit

    EppO committed Apr 25, 2012
  2. 1.8 compatibility (old hash syntax)

    EppO committed Apr 25, 2012
  3. added scopes to Role class to be able to fetch global, class scoped a…

    …nd instance scoped roles
    
    will need to overwrite existing role class, re-running the generator again
    closes #67
    EppO committed Apr 25, 2012
Commits on Apr 23, 2012
  1. Added RailsApp tutorial link in README

    [ci skip]
    EppO committed Apr 23, 2012
Commits on Apr 18, 2012
  1. put logs dir in gitignore

    EppO committed Apr 18, 2012
Commits on Apr 17, 2012