diff options
-rw-r--r-- | activemodel/lib/active_model/validations/numericality.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb index 176a111bcc..ad7012df48 100644 --- a/activemodel/lib/active_model/validations/numericality.rb +++ b/activemodel/lib/active_model/validations/numericality.rb @@ -39,7 +39,7 @@ module ActiveModel return end - if raw_value.is_a?(String) + unless raw_value.is_a?(Numeric) value = parse_raw_value_as_a_number(raw_value) end |