Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 30, 2010
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 28, 2010
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 17, 2010
  1. @bowsersenior
  2. @bowsersenior
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. releasing version 1.4.1

    authored
  2. @nandalopes

    Fix NoMethodError

    nandalopes authored committed
    Raises NoMethodError when using ":singleton => true, :shallow => true" and parent_resource is nil
  3. @ramontayag

    checks if active record responds to 'joins', so this can work with in…

    ramontayag authored committed
    …ternuity's quick_scopes gem; added .swp files to git ignore
  4. @mphalliday

    This fixes an odd error I was seeing in development mode when cache_c…

    mphalliday authored committed
    …lasses = false (the default), specifically when loading an object throught the parent in load_and_authorize_resource.
    
    Assume Photo model and User model where user has many photos:
    
    @photo = current_user.photos.find(1) # this returns a photo
    @photo1 = Photo.find(1)
    
    @photo.kind_of?(Photo) is not always true for some reason when class_cacheing is false.  Where as @photo1.kind_of?(Photo) always appears to be true.  Of interesting note, in the above example @photo != @photo1 if kind_of? is false.  Very odd.
     
    Again, this only appears to be when loading and object through an association.
Commits on Oct 15, 2010
  1. @bowsersenior

    Fix bug with Mongoid document where :manage :all caused accessible_by…

    bowsersenior authored
    … to return nothing and add specs to test for :manage :all.
  2. @bowsersenior

    Fix bug with CanDefinition#tableized_conditions being used with Mongo…

    bowsersenior authored
    …id documents and add more specs for accesible_by with Mongoid.
Commits on Oct 14, 2010
  1. @bowsersenior

    Fix accessible_by for Mongoid documents when no ability is defined.

    bowsersenior authored
    The previous spec that checked for this was not right, since there were no documents in the collection, so every query would return an empty result.
Commits on Oct 13, 2010
  1. @bowsersenior
  2. @bowsersenior
Commits on Oct 8, 2010
Commits on Oct 5, 2010
  1. releasing version 1.4.0

    authored
Something went wrong with that request. Please try again.