aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-01-21 17:44:48 +0100
committerXavier Noria <fxn@hashref.com>2013-01-21 17:44:48 +0100
commit4e327225947b933d5434509e02e98226c581adc1 (patch)
treef81bcef8e3d6ebfd642102a45fbddbeb0b7a3eb0 /activesupport
parentbde96533b6c2e2732fd7fe8327613fbfec236be8 (diff)
downloadrails-4e327225947b933d5434509e02e98226c581adc1.tar.gz
rails-4e327225947b933d5434509e02e98226c581adc1.tar.bz2
rails-4e327225947b933d5434509e02e98226c581adc1.zip
resistance is futile
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/inflector/inflections.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector/inflections.rb b/activesupport/lib/active_support/inflector/inflections.rb
index c288cb555e..c96debb93f 100644
--- a/activesupport/lib/active_support/inflector/inflections.rb
+++ b/activesupport/lib/active_support/inflector/inflections.rb
@@ -135,7 +135,7 @@ module ActiveSupport
p0 = plural[0]
prest = plural[1..-1]
- if singular[0,1].upcase == p0.upcase
+ if s0.upcase == p0.upcase
plural(/(#{s0})#{srest}$/i, '\1' + prest)
plural(/(#{p0})#{prest}$/i, '\1' + prest)