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
Simone Carletti
44b56d3d03
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>
2011-02-24 23:39:05 -03:00
Greg Sterndale
731338ed6c
Do not specify options[:message] for ActiveModel::Errors#add if it's nil
2011-01-18 09:00:36 -05:00
Greg Sterndale
8d9637249c
Fix deprecated ActiveModel::Errors#add options
2011-01-18 09:00:35 -05:00
Sam Lown
c52f009270
Fixing typoo
2010-06-23 11:58:35 +02:00
Sam Lown
3d46db1104
Fixing proxy and view bug
2010-06-22 14:15:30 +02:00
Sam Lown
fcbc0b08e5
Adding manual view support to uniqueness validation
2010-06-21 23:12:15 +02:00
Sam Lown
8337bab714
Fixing uniqueness proxy error + more in README
2010-06-21 22:37:13 +02:00
Sam Lown
08390e6709
Adding uniqueness validation support out of the box
2010-06-21 21:33:46 +02:00
Sam Lown
c280b3a29b
Renaming to CouchRest Model
...
Refactored basic directory structure.
Moved to ActiveSupport for Validations and Callbacks.
Cleaned up older code, and removed support for text property types.
2010-06-20 22:01:11 +02:00