aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-07 19:22:32 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-07 19:23:59 +0100
commit47a5fd4c4ba447c997c0a029adfa80d8b790b25a (patch)
treeebee9d3a65a7d780947ec685c00a4a3884007fe9 /activemodel/test/models
parent0a79eb7889e7ac711ff171a453d65f3df57b9237 (diff)
downloadrails-47a5fd4c4ba447c997c0a029adfa80d8b790b25a.tar.gz
rails-47a5fd4c4ba447c997c0a029adfa80d8b790b25a.tar.bz2
rails-47a5fd4c4ba447c997c0a029adfa80d8b790b25a.zip
Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in validates.
Diffstat (limited to 'activemodel/test/models')
-rw-r--r--activemodel/test/models/person.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/test/models/person.rb b/activemodel/test/models/person.rb
index c83d768379..53ac68055f 100644
--- a/activemodel/test/models/person.rb
+++ b/activemodel/test/models/person.rb
@@ -3,6 +3,10 @@ class Person
extend ActiveModel::Translation
attr_accessor :title, :karma, :salary
+
+ def condition_is_true
+ true
+ end
end
class Child < Person