Hi,
Could you explain a bit more about the use case you are thinking for enum feature on Active Model?
By what you described I believe you can reach with validates_inclusion_of
and a hash. An example of the controller and view would help.
Also, could you also explain what is the use case for i18n for enum values?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.
validates_inclusion_of
and a hash.