diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 22:21:27 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 22:21:27 +0000 |
commit | 6173e5bfaec44729ecabc2e6e05aa2608a85981f (patch) | |
tree | d3379362c0cfb3f16867b56d1c2931bb02d12b86 /activemodel/test/models/developer.rb | |
parent | 08a99d0eac9370b590220953283475e00e3183e6 (diff) | |
download | rails-6173e5bfaec44729ecabc2e6e05aa2608a85981f.tar.gz rails-6173e5bfaec44729ecabc2e6e05aa2608a85981f.tar.bz2 rails-6173e5bfaec44729ecabc2e6e05aa2608a85981f.zip |
Add ActiveModel::Validations tests for regular ruby classes
Diffstat (limited to 'activemodel/test/models/developer.rb')
-rw-r--r-- | activemodel/test/models/developer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/test/models/developer.rb b/activemodel/test/models/developer.rb index a839fe1135..5e6eefeed1 100644 --- a/activemodel/test/models/developer.rb +++ b/activemodel/test/models/developer.rb @@ -1,4 +1,6 @@ class Developer < ActiveRecord::Base validates_inclusion_of :salary, :in => 50000..200000 validates_length_of :name, :within => 3..20 + + attr_accessor :name_confirmation end |