diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-06-23 14:33:29 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-06-23 14:33:29 +0200 |
commit | 0dddba41fcfcd28de2ce1a88a23514fbde53afcf (patch) | |
tree | 7ca3a76134b3b4ce65d2153a3a5902e6d0a53201 /activerecord/lib | |
parent | 3533dc68120ed40a4ec44ed9900c9035108cfcf1 (diff) | |
download | rails-0dddba41fcfcd28de2ce1a88a23514fbde53afcf.tar.gz rails-0dddba41fcfcd28de2ce1a88a23514fbde53afcf.tar.bz2 rails-0dddba41fcfcd28de2ce1a88a23514fbde53afcf.zip |
rather cosmetic improvements of test coverage
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 49d3c59ca7..5bbd10394c 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -21,8 +21,8 @@ module ActiveRecord class << self def default_error_messages - # ActiveSupport::Deprecation.warn("ActiveRecord::Errors.default_error_messages has been deprecated. Please use :'active_record.error_messages'.t.") - :'active_record.error_messages'.t + ActiveSupport::Deprecation.warn("ActiveRecord::Errors.default_error_messages has been deprecated. Please use 'active_record.error_messages'.t.") + 'active_record.error_messages'.t end end @@ -163,7 +163,7 @@ module ActiveRecord @errors.each_key do |attr| @errors[attr].each do |message| next unless message - + if attr == "base" full_messages << message else @@ -872,7 +872,7 @@ module ActiveRecord end raw_value = raw_value.to_i else - begin + begin raw_value = Kernel.Float(raw_value.to_s) rescue ArgumentError, TypeError message = record.errors.generate_message(attr_name, :not_a_number, :value => raw_value, :default => configuration[:message]) |