Skip to content
Commits on Jan 8, 2011
  1. updating changelog

Commits on Jan 6, 2011
  1. @bowsersenior
  2. @bowsersenior

    Use `Mongoid::Matchers#matches?` instead of a database query in `Mong…

    bowsersenior committed
Commits on Jan 5, 2011
Commits on Jan 4, 2011
  1. allow model adapter to override condition hash matching in Rule, also…

    … clean up Mongoid adapter and specs
Commits on Jan 3, 2011
  1. @bowsersenior

    Automatically add `accessible_by` to Mongoid Documents to match CanCa…

    bowsersenior committed
    …n behavior for ActiveRecord and DataMapper.
    Previously, CanCan::ModelAdditions had to be included in each and every Mongoid document separately. Also removed manual include of CanCan::ModelAdditions from Mongoid documents in Mongoid adapter specs.
Commits on Dec 30, 2010
  1. cleanup whitespace

Commits on Dec 29, 2010
  1. moving model adapter specs into their own directory with MODEL_ADAPTE…

    …R environment variable for choosing which one to run
  2. @natemueller

    Add support and tests for datamapper.

    natemueller committed with
    This broke some of the mongoid tests and I don't know how to fix them.  Both packages
      define Symbol#in, and when you load them both things don't behave properly.  Hopefully
      someone more versed in mongoid can rewrite the spec to not depend on the Symbol extensions.
Commits on Dec 26, 2010
  1. @bowsersenior

    Fix bug with MongoidAdditions throwing a NameError when Mongoid is no…

    bowsersenior committed
    …t defined by always checking if Mongoid is defined before referencing Mongoid-related constants
    Also add spec for this bug
  2. @bowsersenior
Commits on Dec 21, 2010
  1. renaming CanDefinition to Rule

  2. Merge branch 'master' of into …

Commits on Nov 16, 2010
  1. @bowsersenior
  2. @tylergannon

    can? should only go to db if there are mongoid criteria in the condit…

    tylergannon committed
    Easier to just do a simple comparison on the object in memory
    than to search the database.  Also this allows method calls
    and other attributes that might not be found in the database.
Commits on Nov 12, 2010
  1. @nandalopes

    Fix NoMethodError

    nandalopes committed with
    Raises NoMethodError when using ":singleton => true, :shallow => true" and parent_resource is nil
Something went wrong with that request. Please try again.