Plugins - Acts As Enumerated

StarAdd to favorites

Values for acts_as_enumerated models are cached (reducing hits to the database) and you can define �virtual� acts_as_enumeration classes, eliminating the need to clutter your models directory with classes that do nothing more than acts_as_enumerated.

The has_enumerated macro allows your models to refer to acts_as_enumerated instances without resorting to using belongs_to (which can require you to jump through hoops to avoid the database hit when retrieving the enumeration value).

Trevor Squires

http://wiki.rubyonrails.org/rails/pages/Acts+As+Enumerated+Plugin

http://svn.protocool.com/public/plugins/enumerations_mixin/

  • Currently 4.7/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
Nickolas 11 Aug 2006

Nice plugin ..

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?