Skip to content

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