Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

patch for #issue/10, use '¤' for default currency symbol

  • Loading branch information...
commit c4a20ad06b38ac029a2b860edc2b05b42def57b8 1 parent 4951ac7
@semmons99 semmons99 authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  lib/money/defaults.rb
  2. +4 −4 lib/money/money.rb
View
2  lib/money/defaults.rb
@@ -41,7 +41,7 @@ def deprecate
"SEK" => "kr",
"GHC" => "¢",
"BRL" => "R$ ",
- # Everything else defaults to '$'
+ # Everything else defaults to '¤'
}, "Money::SYMBOLS has no longer effect. See Money::Currency#symbol.")
SEPARATORS = DeprecatedHash.new({
View
8 lib/money/money.rb
@@ -237,9 +237,9 @@ def nonzero?
# Attempts to pick a symbol that's suitable for the given currency
# looking up the Currency::TABLE hashtable.
# If the symbol for the given currency isn't known,
- # then it will default to "$".
+ # then it will default to "¤".
def symbol
- currency.symbol || "$"
+ currency.symbol || "¤"
end
# Uses :delimiter from the Currency hash. If it is not specified defaults to
@@ -308,9 +308,9 @@ def separator
#
#
# If the symbol for the given currency isn't known, then it will default
- # to "$" as symbol:
+ # to "¤" as symbol:
#
- # Money.new(100, "AWG").format(:symbol => true) => "$1.00"
+ # Money.new(100, "AWG").format(:symbol => true) => "¤1.00"
#
# You can specify a string as value to enforce using a particular symbol:
#
Please sign in to comment.
Something went wrong with that request. Please try again.