Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parallel588 committed Jun 16, 2011
1 parent 8bd5681 commit 6198c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/number_helper_decorator.rb
Expand Up @@ -6,7 +6,7 @@ def number_to_currency(number, options = {})
return nil if number.nil?

options.symbolize_keys!
options[:locale] = "currency_#{Currency.current.char_code}"
options[:locale] = "currency_#{ Currency.current.try(:char_code) || I18n.default_locale }"
defaults = I18n.translate('number.format', :locale => options[:locale], :default => {})
currency = I18n.translate('number.currency.format', :locale => options[:locale], :default => {})
defaults = DEFAULT_CURRENCY_VALUES.merge(defaults).merge!(currency)
Expand Down

0 comments on commit 6198c16

Please sign in to comment.