missed to remove a call to to_s while resolving conflicts in validations.rb

This commit is contained in:
Sven Fuchs 2008-07-16 04:35:00 +02:00
parent fbe1823117
commit 2e74ddbd73
1 changed files with 1 additions and 1 deletions

View File

@ -877,7 +877,7 @@ module ActiveRecord
raw_value = raw_value.to_i
else
begin
raw_value = Kernel.Float(raw_value.to_s)
raw_value = Kernel.Float(raw_value)
rescue ArgumentError, TypeError
message = record.errors.generate_message(attr_name, :not_a_number, :value => raw_value, :default => configuration[:message])
record.errors.add(attr_name, message)