Permalink
Commits on Mar 13, 2011
  1. Merge branch 'master' of github.com:couchrest/couchrest_model

    Conflicts:
    	history.txt
    samlown committed Mar 13, 2011
  2. Demoting collection support, using latest couchrest, ensuring reduce …

    …always included when needed
    samlown committed Mar 13, 2011
Commits on Mar 2, 2011
  1. I'm using a shell script to run all specs in Ruby 1.9.2, MRI 1.8.7 an…

    …d ree 1.8.7 and I need this change to help me.
    tapajos committed Mar 2, 2011
  2. Updating Readme

    tapajos committed Mar 2, 2011
  3. Numeric types can be casted from strings with leading or trailing whi…

    …tespace
    
    Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
    chrisdurtschi committed with tapajos Feb 26, 2011
Commits on Feb 27, 2011
  1. Docs for pagination, not including docs in reduce and raising errors …

    …when cannot include docs
    samlown committed Feb 27, 2011
Commits on Feb 25, 2011
  1. Update History

    tapajos committed Feb 25, 2011
  2. fixes typos in README

    Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
    tansengming committed with tapajos Feb 21, 2011
  3. Whitespaces.

    weppos committed with tapajos Feb 9, 2011
  4. Fixed typo

    weppos committed with tapajos Feb 9, 2011
  5. Add Base#reload (closes #12)

    Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
    weppos committed with tapajos Feb 9, 2011
  6. Validations spec are never executed due to an invalid filename pattern.

    Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
    weppos committed with tapajos Feb 21, 2011
  7. Fixed UniquenessValidator error

      1) Validations Uniqueness should not validate a non-unique document
         Failure/Error: @obj.errors[:title].should eql(['is already taken'])
    
         expected ["is already taken"]
              got ["translation missing: en.activemodel.errors.models.with_unique_validation.attributes.title.taken"]
    
         (compared using eql?)
    
         Diff:
         @@ -1,2 +1,2 @@
         -["is already taken"]
         +["translation missing: en.activemodel.errors.models.with_unique_validation.attributes.title.taken"]
         # ./spec/couchrest/validations_spec.rb:28:in `block (3 levels) in <top (required)>'
    
    Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
    weppos committed with tapajos Feb 21, 2011
  8. Change Uniqueness validator message to follow ActiveRecord and other …

    …ORM behavior. Keeping the same message allows tools like Shoulda to work out of the box.
    
    Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
    weppos committed with tapajos Feb 21, 2011
  9. Narrow the rescued exception to avoid catching class evaluation error…

    …s that has nothing to to with the association.
    
    Example:
    
        /Users/weppos/.rvm/gems/ruby-1.8.7-p330/gems/couchrest_model-1.0.0/lib/couchrest/model/associations.rb:29:in `belongs_to': Unable to convert class name into Constant for Document#dossier (RuntimeError)
    
    although the real error is
    
        /Users/weppos/Projects/working/.../app/models/user.rb:56: undefined method `validates_uniqueness_of' for User:Class (NoMethodError)
    weppos committed with tapajos Feb 22, 2011
  10. Lock Gemfile

    tapajos committed Feb 25, 2011
Commits on Feb 13, 2011
Commits on Feb 9, 2011
Commits on Feb 6, 2011
  1. Testing for ViewRow

    samlown committed Feb 6, 2011
Commits on Feb 5, 2011
Commits on Feb 2, 2011
Commits on Feb 1, 2011
  1. Use :validation callbacks, not the :validate callbacks reserved by Ac…

    …tiveModel, ensuring callbacks are actually run when they're supposed to be.
    gsterndale committed Feb 1, 2011
Commits on Jan 22, 2011