1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

significant method is not significant anymore

This commit is contained in:
Filip Pyda 2021-02-08 17:27:52 +01:00
parent 6515d6985d
commit e308213c80

View file

@ -35,16 +35,12 @@ module ActiveSupport
end
def absolute_precision(number)
if significant && options[:precision] > 0
if options[:significant] && options[:precision] > 0
options[:precision] - digit_count(convert_to_decimal(number))
else
options[:precision]
end
end
def significant
options[:significant]
end
end
end
end