aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/developer.rb
blob: 5e6eefeed19011bc8b8fc8be5983f4189e54188d (plain) (blame)
1
2
3
4
5
6
class Developer < ActiveRecord::Base
  validates_inclusion_of :salary, :in => 50000..200000
  validates_length_of :name, :within => 3..20

  attr_accessor :name_confirmation
end