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
obrie (author)
Wed Sep 26 12:47:35 -0700 2007
commit  50a4b06d6cb361bb80843b186a40a8be6dd39729
tree    28b032aea712802bdc7f31f598f4e75736ec9292
parent  c8b3d0075e56469dcc367880b181638235388247
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

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]