Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Got rid of deprecation warnings

  • Loading branch information...
commit b8167841b820f652626a38904e731a70c1d3571b 1 parent ecee48e
@bfolkens authored
View
2  lib/formatters/format_decimal.rb
@@ -10,7 +10,7 @@ def initialize(options = {})
def from(value, options = {})
options = {:precision => 3, :delimiter => ','}.merge(options)
- number_with_delimiter number_with_precision(value, options[:precision]), options[:delimiter]
+ number_with_precision value, options
end
def to(str, options = {})
View
2  lib/formatters/format_integer.rb
@@ -10,7 +10,7 @@ def initialize(options = {})
def from(value, options = {})
options = {:delimiter => ','}.merge(options)
- number_with_delimiter value, options[:delimiter]
+ number_with_delimiter value, options
end
def to(str, options = {})
Please sign in to comment.
Something went wrong with that request. Please try again.