public
Description: Adds support for declaring an ActiveRecord class as an enumeration
Homepage: http://www.pluginaweek.org
Clone URL: git://github.com/pluginaweek/enumerate_by.git
name age message
file CHANGELOG Loading commit data...
file MIT-LICENSE Thu Jul 12 11:28:04 -0700 2007 Initial release [obrie]
file README
file Rakefile
file init.rb Thu Jul 12 11:28:04 -0700 2007 Initial release [obrie]
directory lib/
directory test/
README
= acts_as_enumeration

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

== Resources

API

* http://api.pluginaweek.org/acts_as_enumeration

Wiki

* http://wiki.pluginaweek.org/Acts_as_enumeration

Announcement

* http://www.pluginaweek.org/

Source

* http://svn.pluginaweek.org/trunk/plugins/active_record/acts/acts_as_enumeration

Development

* http://dev.pluginaweek.org/browser/trunk/plugins/active_record/acts/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.

== Testing

This plugin requires that the plugin_test_helper gem be installed in order to
run the unit tests.  To install this gem:

  gem install plugin_test_helper

== References

Trevor Squires - http://svn.protocool.com/rails/plugins/enumerations_mixin