1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/models/developer.rb

6 lines
178 B
Ruby

class Developer < ActiveRecord::Base
validates_inclusion_of :salary, :in => 50000..200000
validates_length_of :name, :within => 3..20
attr_accessor :name_confirmation
end