public
Description: Funky experimental plugin for ActiveRecord: you can now type Posts.all/find/scoped instead of Post.all/find/scoped.
Homepage:
Clone URL: git://github.com/yaroslav/pluralized_models.git
README.rdoc

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