Skip to content

Commit

Permalink
removes redundant argument
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Feb 13, 2012
1 parent d3071db commit dc03a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/inflector/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit dc03a2f

Please sign in to comment.