Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol IDs #38

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Symbol IDs #38

wants to merge 11 commits into from

Conversation

gsmetal
Copy link

@gsmetal gsmetal commented Feb 28, 2014

Finally, I've found time to deal with this.

This PR based on #28

I completely implemented logic: if ids are symbols, names are not symbols.
Added some restrictions of using mixed id types in one enum and added tests.

class Sex < ActiveEnum::Base
  value :id => :m, :name => 'Male'
  value :id => :f, :name => 'Female'
end

@gsmetal gsmetal mentioned this pull request Feb 28, 2014
@gsmetal gsmetal mentioned this pull request Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants