aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2015-05-20 11:05:27 +0900
committerAkira Matsuda <ronnie@dio.jp>2015-05-20 11:05:27 +0900
commite6f9468e221999e5ea8342f8e72578e1f0a0ec09 (patch)
tree2929fceea703dafd4de1b313cebdc567103dd04b /activesupport
parentffc3b33494fde0c628bd6ffa6d9b889b1e868aae (diff)
downloadrails-e6f9468e221999e5ea8342f8e72578e1f0a0ec09.tar.gz
rails-e6f9468e221999e5ea8342f8e72578e1f0a0ec09.tar.bz2
rails-e6f9468e221999e5ea8342f8e72578e1f0a0ec09.zip
Give respond_to? a Symbol
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_currency_converter.rb2
1 files changed, 1 insertions, 1 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 cd5a2b3cbb..7986eb50f0 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
@@ -23,7 +23,7 @@ module ActiveSupport
end
def absolute_value(number)
- number.respond_to?("abs") ? number.abs : number.sub(/\A-/, '')
+ number.respond_to?(:abs) ? number.abs : number.sub(/\A-/, '')
end
def options