couchrest_model/lib/couchrest/model
Simone Carletti f75893b927 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>
2011-02-24 23:39:34 -03:00
..
support Renaming support delete method so as not to conflict with ExtendedDocument 2010-06-21 15:10:42 +02:00
validations Fixed UniquenessValidator error 2011-02-24 23:39:34 -03:00
associations.rb Narrow the rescued exception to avoid catching class evaluation errors that has nothing to to with the association. 2011-02-24 23:38:39 -03:00
base.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
callbacks.rb Use :validation callbacks, not the :validate callbacks reserved by ActiveModel, ensuring callbacks are actually run when they're supposed to be. 2011-02-01 14:32:38 -05:00
casted_array.rb Renaming to CouchRest Model 2010-06-20 22:01:11 +02:00
casted_model.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
class_proxy.rb add method 'last' to simplify queries 2010-12-31 18:59:57 -02:00
collection.rb Fixing the database in view bug 2010-12-02 01:53:45 +01:00
configuration.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
design_doc.rb Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00
document_queries.rb add method 'last' to simplify queries 2010-12-31 18:59:57 -02:00
errors.rb Renaming to CouchRest Model 2010-06-20 22:01:11 +02:00
extended_attachments.rb creating attachments accessor 2010-08-03 23:58:28 -03:00
persistence.rb Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00
properties.rb Anonymous casted model properties no longer require block parameter 2011-02-05 22:38:22 +01:00
property.rb Make deep clone of default property values 2011-01-18 08:13:05 -05:00
property_protection.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
typecast.rb Handling cases when , used instead of . more elegantly 2010-10-23 20:59:24 +02:00
validations.rb Use :validation callbacks, not the :validate callbacks reserved by ActiveModel, ensuring callbacks are actually run when they're supposed to be. 2011-02-01 14:32:38 -05:00
view.rb Adding the initial workings of the view class 2010-12-02 01:42:52 +01:00
views.rb Adding configuration support and changing 'couchrest-type' key to 'model' along with config options 2010-09-17 23:00:55 +02:00