From 9fd88d793998ea3a15a916ce7175f1bb2cd264fe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 9 Oct 2006 01:42:09 +0000 Subject: Deprecated add_on_boundary_breaking (use validates_length_of instead) (closes #6292) [BobSilva] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/company_in_module.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'activerecord/test/fixtures/company_in_module.rb') 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 -- cgit v1.2.3