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 ac8308b0d7..062b4cd17f 100644 --- a/activemodel/lib/active_model/validations/numericality.rb +++ b/activemodel/lib/active_model/validations/numericality.rb @@ -58,7 +58,7 @@ module ActiveModel def parse_raw_value_as_a_number(raw_value) case raw_value - when /\A0x/ + when /\A0[xX]/ nil else begin |