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_ofand 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?

Rafael Mendonça França
http://twitter.com/rafaelfranca
https://github.com/rafaelfranca


On Mon, Apr 14, 2014 at 4:25 PM, Sadjow Leão <sad...@gmail.com> wrote:

> Hi folks,
>
> I'm thinking about a Pull Request for Rails. But, I want to validate with
> you.
>
> Why not put Enum into ActiveModel? We may need some enumeration into
> another model without ActiveRecord, a example: something like a mail object
> form with a enumeration for subject... and other situations.
>
> And a second Pull Request is:
>
> i18n for enum values. We need that.
>
> What do you think about?
>
> Thanks,
>
> --
> 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-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to