An open API service indexing awesome lists of open source software.

https://github.com/twilightcoders/active_enum

Adds true enumeration support to ActiveRecord
https://github.com/twilightcoders/active_enum

Last synced: about 1 year ago
JSON representation

Adds true enumeration support to ActiveRecord

Awesome Lists containing this project

README

          

# ActiveEnum

ActiveRecord lacks solid meaniningful support for true enumeration in databases. The best, most efficient enumerations are stored as integers, however numbers are often less meaningful to humans. To combat this, ActiveEnum aims to converts quickly and efficiently between different formats when reading from and writing to a database.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'active_enum'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install active_enum

## Usage

Coming soon.

## Contributing

1. Fork it ( https://github.com/twilightcoders/active_enum/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request