From 4e327225947b933d5434509e02e98226c581adc1 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 21 Jan 2013 17:44:48 +0100 Subject: resistance is futile --- activesupport/lib/active_support/inflector/inflections.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/inflector') 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) -- cgit v1.2.3