Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 8, 2011
  1. updating changelog

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

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

    bowsersenior authored
    …oidAdapter#matches_conditions_hash?`
Commits on Jan 5, 2011
Commits on Jan 4, 2011
  1. allow model adapter to override condition hash matching in Rule, also…

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

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

    bowsersenior authored
    …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

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

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

    Add support and tests for datamapper.

    natemueller authored committed
    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 authored
    …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

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

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

    tylergannon authored
    …ions.
    
    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 authored committed
    Raises NoMethodError when using ":singleton => true, :shallow => true" and parent_resource is nil
Something went wrong with that request. Please try again.