Comments (1)
Totally understand your nostalgia. This gem is a dirty hybrid of the idea of an enum. Solving common needs but not being purist. The contract of having values as constants is something that can't be fulfilled in many apps because the name is not able to be defined as a constant (eg. punctuation or similar).
It could however be added as an extension to the gem and activated in the config. I would leave that for you to investigate.
from active_enum.
Related Issues (20)
- Using ids instead of names to store HOT 2
- Checked values are empty HOT 17
- Attribute isn't translated if id isn't a Fixnum HOT 1
- Enum IDs Can't Be Strings HOT 6
- plans to provide helpers for javascript or client_side_validations HOT 6
- Provide rspec matcher out of the box HOT 1
- ActionView::Template::Error (Unable to find input class for enum) HOT 1
- Boolean check does not work with with option `config.use_name_as_value = true`
- to_select method to return list based on specific enums HOT 1
- Rails 4 compatibility HOT 2
- Reopen issue #21 (string id's)? HOT 2
- Missing note on i18n configuration in project readme HOT 2
- Rails 4 support not available in RubyGems HOT 8
- Add functionality to get id and name of enum by a method
- Retrieving the key as well as the `id` and `name` HOT 2
- Add enumerate method fails on Rails 6.1 HOT 1
- Formtastic Support HOT 2
- Generate boolean method like ActiveRecord::Enum
- String keys in database HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from active_enum.