diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-07 11:15:41 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-07 11:15:41 +0000 |
commit | b4f4d038b9b240c2a388bbe3fbfb885170930f99 (patch) | |
tree | 816b43d45ee5adaf26cdb1c2c9ef5941e8c8b466 /activerecord/lib/active_record | |
parent | d1856a00a3c614062049a43fb3e5e6a7b899c879 (diff) | |
download | rails-b4f4d038b9b240c2a388bbe3fbfb885170930f99.tar.gz rails-b4f4d038b9b240c2a388bbe3fbfb885170930f99.tar.bz2 rails-b4f4d038b9b240c2a388bbe3fbfb885170930f99.zip |
Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@60 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/support/inflector.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/support/inflector.rb b/activerecord/lib/active_record/support/inflector.rb index 05ff4fede9..b41f85188b 100644 --- a/activerecord/lib/active_record/support/inflector.rb +++ b/activerecord/lib/active_record/support/inflector.rb @@ -63,6 +63,7 @@ module Inflector def singular_rules #:doc: [ [/(x|ch|ss)es$/, '\1'], + [/movies$/, 'movie'], [/([^aeiouy]|qu)ies$/, '\1y'], [/([lr])ves$/, '\1f'], [/([^f])ves$/, '\1fe'], |