From e6f9468e221999e5ea8342f8e72578e1f0a0ec09 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 20 May 2015 11:05:27 +0900 Subject: Give respond_to? a Symbol --- .../lib/active_support/number_helper/number_to_currency_converter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/number_helper') 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 -- cgit v1.2.3