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 Wed Sep 26 12:47:35 -0700 2007 Prepare release dates/versions [obrie]
file MIT-LICENSE Thu Jul 12 11:28:04 -0700 2007 Initial release [obrie]
file README Wed Sep 26 17:40:37 -0700 2007 Update README format [obrie]
file Rakefile Wed Sep 26 12:47:35 -0700 2007 Prepare release dates/versions [obrie]
file init.rb Thu Jul 12 11:28:04 -0700 2007 Initial release [obrie]
directory lib/ Thu Sep 20 21:37:55 -0700 2007 Move test fixtures out of the test application ... [obrie]
directory test/ Thu Sep 20 21:37:55 -0700 2007 Move test fixtures out of the test application ... [obrie]
README
= acts_as_enumeration

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

== Resources

Announcement

* http://www.pluginaweek.org

Wiki

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

API

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

Development

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

Source

* http://svn.pluginaweek.org/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

Before you can run any tests, the following gem must be installed:
* plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]

== References

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