Why its not possible to have more than one enum in Rails model? Though it
throws out no error or warning, discovering that its not possible is quiet
annoying.

Cold this be added as a feature request for future Rails version?

If two enums have a same keyword say like

enum enum1:  [:a , :b, :c]
enum enum2: [:d, :b, :f]

Then Rails can throw out an exception that :b is replicated. I did checkout
_prefix and _suffix, but that that doesn't seems to work for me and doesn't
look nice.

-- 
Karthikeyan A K
https://goo.gl/NYcfo3 - My Ruby Book

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kY9Do%3D%3DKBf4qxr8AOMzrzWR87VQXvVWPDDjkDh%3DLLvmig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to