Commit graph

13 commits

Author SHA1 Message Date
Sam Lown d56179aa6b Views for unique validations created on loading, not execution 2011-05-20 12:21:42 +02:00
Sam Lown a6becd7305 Fixing issues with Ruby 1.8.7 2011-04-08 22:34:25 +02:00
Sam Lown 1d37f12982 Adding support for scopes on unique validation 2011-04-08 14:36:29 +02:00
Sam Lown 760d855845 Fixing and testing proxyable with associations and validation 2011-04-05 20:41:24 +02:00
Sam Lown 8fa7e87019 working on proxy association and handling 2011-04-04 01:10:31 +02:00
Sam Lown f58482553c Merge branch 'master' of github.com:couchrest/couchrest_model into adv_design 2011-02-27 20:19:09 +01:00
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
Sam Lown a78e3b74d6 Adding support for proxying and more refinements to views 2011-02-09 21:21:03 +01: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