aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-14 00:34:43 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-14 00:34:43 +0000
commit041b9b8a1c1661f90e8e586fddce981bfdb17f11 (patch)
treeef4778f501ee2a64b47d3eb2cc60236e8266e94d /activesupport/lib/active_support/inflector.rb
parente6941149abbee39dbbe9898b0dc45e95046f7a70 (diff)
downloadrails-041b9b8a1c1661f90e8e586fddce981bfdb17f11.tar.gz
rails-041b9b8a1c1661f90e8e586fddce981bfdb17f11.tar.bz2
rails-041b9b8a1c1661f90e8e586fddce981bfdb17f11.zip
Some 1.9 forward compatibility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/inflector.rb')
-rw-r--r--activesupport/lib/active_support/inflector.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb
index db6e44e91b..39edf64117 100644
--- a/activesupport/lib/active_support/inflector.rb
+++ b/activesupport/lib/active_support/inflector.rb
@@ -270,9 +270,9 @@ module Inflector
"#{number}th"
else
case number.to_i % 10
- when 1: "#{number}st"
- when 2: "#{number}nd"
- when 3: "#{number}rd"
+ when 1; "#{number}st"
+ when 2; "#{number}nd"
+ when 3; "#{number}rd"
else "#{number}th"
end
end