Permalink
Browse files

removes redundant argument

  • Loading branch information...
1 parent d3071db commit dc03a2f56cb9aa7c6b6252311c0ce2fed92f0d06 @fxn fxn committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/inflector/methods.rb
@@ -308,7 +308,7 @@ def const_regexp(camel_cased_word) #:nodoc:
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) }

0 comments on commit dc03a2f

Please sign in to comment.