From dc03a2f56cb9aa7c6b6252311c0ce2fed92f0d06 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 12 Feb 2012 16:45:14 -0800 Subject: removes redundant argument --- activesupport/lib/active_support/inflector/methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb index b1ff92151e..79070b4a35 100644 --- a/activesupport/lib/active_support/inflector/methods.rb +++ b/activesupport/lib/active_support/inflector/methods.rb @@ -308,7 +308,7 @@ module ActiveSupport def apply_inflections(word, rules) result = word.to_s.dup - if word.empty? || inflections.uncountables.include?(result.downcase[/\b\w+\Z/, 0]) + if word.empty? || inflections.uncountables.include?(result.downcase[/\b\w+\Z/]) result else rules.each { |(rule, replacement)| break if result.gsub!(rule, replacement) } -- cgit v1.2.3