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:
parent
6515d6985d
commit
e308213c80
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue