Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

yaroslav/pluralized_models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pluralized_models

pluralized_models is a Rails plugin for automatic pluralized AR models generation. For instance, if you have

class Post < ActiveRecord::Base
end

you’ll automatically get Posts object proxy that will call singular class methods:

Posts.find(:all)
Posts.all
Posts.find_by_title
Posts.scoped_by_date

are now available automatically.

Also,

Posts.new

will create a new instance of Post.

Meant to be not destructive to existent classes/modules.

Why?

rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1675

Installation

script/plugin install git://github.com/yaroslav/pluralized_models.git

from your Rails application directory.

Author

Copyright © 2009 Yaroslav Markin <yaroslav@markin.net>, released under the MIT license

About

Funky experimental plugin for ActiveRecord: you can now type Posts.all/find/scoped instead of Post.all/find/scoped.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages