ensure method exists

pull/8391/head
ulferts 5 years ago
parent a0565b435e
commit 94cc3fc188
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      app/models/query/sums.rb

@ -99,7 +99,7 @@ module ::Query::Sums
end
def crunch(num)
return num if num.nil? or num.integer?
return num if num.nil? || !num.respond_to?(:integer?) || num.integer?
Float(format('%.2f', num.to_f))
end

Loading…
Cancel
Save