Skip to content
This repository
Browse code

Fix status pluralization bug so status_codes doesn't get pluralized a…

…s statuses_code. Closes #2758.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 8210f70c7cbc14a762b198f21814b96664b2c867 1 parent 645de33
Jeremy Kemper authored November 07, 2005
2  activesupport/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Fix status pluralization bug so status_codes doesn't get pluralized as statuses_code.  #2758 [keithm@infused.org]
  4
+
3 5
 * Added Kernel#silence_stderr to silence stderr for the duration of the given block [Sam Stephenson]
4 6
 
5 7
 * Changed Kernel#` to print a message to stderr (like Unix) instead of raising Errno::ENOENT on Win32 [Sam Stephenson]
4  activesupport/lib/active_support/inflections.rb
@@ -3,7 +3,7 @@
3 3
   inflect.plural /s$/i, 's'
4 4
   inflect.plural /(ax|test)is$/i, '\1es'
5 5
   inflect.plural /(octop|vir)us$/i, '\1i'
6  
-  inflect.plural /(alias|status)/i, '\1es'
  6
+  inflect.plural /(alias|status)$/i, '\1es'
7 7
   inflect.plural /(bu)s$/i, '\1ses'
8 8
   inflect.plural /(buffal|tomat)o$/i, '\1oes'
9 9
   inflect.plural /([ti])um$/i, '\1a'
@@ -50,4 +50,4 @@
50 50
   inflect.irregular 'move', 'moves'
51 51
 
52 52
   inflect.uncountable %w( equipment information rice money species series fish sheep )
53  
-end
  53
+end
1  activesupport/test/inflector_test.rb
@@ -81,6 +81,7 @@ class InflectorTest < Test::Unit::TestCase
81 81
     "equipment" => "equipment",
82 82
     "bus" => "buses", 
83 83
     "status" => "statuses",
  84
+    "status_code" => "status_codes",
84 85
     "mouse" => "mice",
85 86
 
86 87
     "louse" => "lice",

0 notes on commit 8210f70

Please sign in to comment.
Something went wrong with that request. Please try again.