Skip to content
Browse files

Fixed helper "number_to_currency_with_synergy"

  • Loading branch information...
1 parent a5b6545 commit 812af391120655e08879e2823e59e0c1d38bb123 @c0va23 c0va23 committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ext/number_helper.rb
View
2 lib/ext/number_helper.rb
@@ -2,7 +2,7 @@
ActionView::Helpers::NumberHelper.module_eval do
def number_to_currency_with_synergy(number, options = {})
- number_to_currency_without_synergy(number, options).gsub(' ', "\302\240")
+ number_to_currency_without_synergy(number, options).try(:gsub, ' ', "\302\240")
end
alias_method_chain :number_to_currency, :synergy
end

0 comments on commit 812af39

Please sign in to comment.
Something went wrong with that request. Please try again.