Comments (5)
No it doesn't and wouldn't easily be able to without significantly breaking the API. I have thought about it and it has been requested.
from active_enum.
@kalsan you could look on my PR that I used to use many years ago. But it's not updated because I eventually moved to enumerize
.
from active_enum.
@gsmetal thanks for the suggestion! As @adzap pointed out that this will not be implemented, I decided to use this foggy Saturday morning to implement my own, https://github.com/kalsan/anchormodel
It's not quite finished yet, but it appears to work and it's what I'm looking for.
from active_enum.
@gsmetal just finished Version 0.0.1, including documentation, fresh out of the press. Feel free to contribute if you are missing features!
from active_enum.
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
- Access Enum as Constant HOT 1
- 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
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.