Permalink
Browse files

Got rid of deprecation warnings

  • Loading branch information...
1 parent ecee48e commit b8167841b820f652626a38904e731a70c1d3571b @bfolkens committed Mar 30, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/formatters/format_decimal.rb
  2. +1 −1 lib/formatters/format_integer.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 = {})
@@ -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 = {})

0 comments on commit b816784

Please sign in to comment.