diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-05-20 11:05:27 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-05-20 11:05:27 +0900 |
commit | e6f9468e221999e5ea8342f8e72578e1f0a0ec09 (patch) | |
tree | 2929fceea703dafd4de1b313cebdc567103dd04b /activesupport/lib/active_support | |
parent | ffc3b33494fde0c628bd6ffa6d9b889b1e868aae (diff) | |
download | rails-e6f9468e221999e5ea8342f8e72578e1f0a0ec09.tar.gz rails-e6f9468e221999e5ea8342f8e72578e1f0a0ec09.tar.bz2 rails-e6f9468e221999e5ea8342f8e72578e1f0a0ec09.zip |
Give respond_to? a Symbol
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/number_helper/number_to_currency_converter.rb | 2 |
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 |