diff options
Diffstat (limited to 'activemodel/test/models/developer.rb')
-rw-r--r-- | activemodel/test/models/developer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/test/models/developer.rb b/activemodel/test/models/developer.rb new file mode 100644 index 0000000000..a839fe1135 --- /dev/null +++ b/activemodel/test/models/developer.rb @@ -0,0 +1,4 @@ +class Developer < ActiveRecord::Base + validates_inclusion_of :salary, :in => 50000..200000 + validates_length_of :name, :within => 3..20 +end |