Permalink
Browse files

missed to remove a call to to_s while resolving conflicts in validati…

…ons.rb
  • Loading branch information...
1 parent fbe1823 commit 2e74ddbd73cb4212afbad3907f0130c6ec38572f Sven Fuchs committed Jul 16, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/validations.rb
@@ -877,7 +877,7 @@ def validates_numericality_of(*attr_names)
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)

0 comments on commit 2e74ddb

Please sign in to comment.