diff options
Diffstat (limited to 'activerecord/test/fixtures/company_in_module.rb')
-rw-r--r-- | activerecord/test/fixtures/company_in_module.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/test/fixtures/company_in_module.rb b/activerecord/test/fixtures/company_in_module.rb index 1eb2b2bd93..feb3210c02 100644 --- a/activerecord/test/fixtures/company_in_module.rb +++ b/activerecord/test/fixtures/company_in_module.rb @@ -21,11 +21,7 @@ module MyApplication class Developer < ActiveRecord::Base has_and_belongs_to_many :projects - - protected - def validate - errors.add_on_boundary_breaking("name", 3..20) - end + validates_length_of :name, :within => (3..20) end class Project < ActiveRecord::Base |