aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 19:49:19 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 20:26:56 -0200
commite56a553c9536225296a98f82d4625ee2b94a2b2f (patch)
tree6532e476691627276685fd47c0c32834ca2f3932 /activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
parent4e19ef9b25e7461be654c6e5bc085addbefc459e (diff)
downloadrails-e56a553c9536225296a98f82d4625ee2b94a2b2f.tar.gz
rails-e56a553c9536225296a98f82d4625ee2b94a2b2f.tar.bz2
rails-e56a553c9536225296a98f82d4625ee2b94a2b2f.zip
Stop using local variables everywhere, make use of the reader
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_to_currency_converter.rb')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_currency_converter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb b/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
index 28f33164a5..11ba0605e0 100644
--- a/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
+++ b/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
@@ -4,8 +4,8 @@ module ActiveSupport
self.namespace = :currency
def convert
- number = @number.to_s.strip
- format = options[:format]
+ number = self.number.to_s.strip
+ format = options[:format]
if is_negative?(number)
format = options[:negative_format]