diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 01:42:09 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 01:42:09 +0000 |
commit | 9fd88d793998ea3a15a916ce7175f1bb2cd264fe (patch) | |
tree | 5e783a553d9a62fd49d35533f4bdb6c142b64461 /activerecord/test/fixtures | |
parent | cb0837a2b7e7d5ba46494acaecc0f5798964ecf7 (diff) | |
download | rails-9fd88d793998ea3a15a916ce7175f1bb2cd264fe.tar.gz rails-9fd88d793998ea3a15a916ce7175f1bb2cd264fe.tar.bz2 rails-9fd88d793998ea3a15a916ce7175f1bb2cd264fe.zip |
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
Diffstat (limited to 'activerecord/test/fixtures')
-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 |