Acts As Enumeration plugin

Plugin details

acts_as_enumeration adds support for declaring an ActiveRecord class as an enumeration.

Websitehttp://wiki.pluginaweek.org/Acts_as_enumeration Repositoryhttp://svn.pluginaweek.org/trunk/acts_as_enumeration Author Aaron Pfeifer Tags ActiveRecord, Enumeration LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.pluginaweek.org/trunk/acts_as_enumeration

Description
=============

Support for enumerations is dependent on the type of database you use. For example, MySQL has native support for the enum data type. However, there is no native Rails support for defining enumerations and the associations between it and other models in the application.

acts_as_enumeration adds support for enumerations in Rails by providing methods for interacting with records in a table as if they were values in an enumeration.

See the API for usage examples.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: obrie572, 6 months ago