aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-02-12 16:45:14 -0800
committerXavier Noria <fxn@hashref.com>2012-02-12 16:45:14 -0800
commitdc03a2f56cb9aa7c6b6252311c0ce2fed92f0d06 (patch)
treecf4b8c7990fc8eb0911b4d1c1cdc802fe03c85c7 /activesupport
parentd3071db1200e90c0533f75b967c4afb519656d00 (diff)
downloadrails-dc03a2f56cb9aa7c6b6252311c0ce2fed92f0d06.tar.gz
rails-dc03a2f56cb9aa7c6b6252311c0ce2fed92f0d06.tar.bz2
rails-dc03a2f56cb9aa7c6b6252311c0ce2fed92f0d06.zip
removes redundant argument
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb2
1 files changed, 1 insertions, 1 deletions
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) }