I'd like to open a PR for this -- I have the change written and ready to 
go. It's simple enough. The idea is to provide a "nice" way for going from 
an integer returned from the database
to the corresponding label defined for an enum field *without* resorting to 
hash methods. I've written up details (and the change) here:

https://github.com/rails/rails/commit/379c899479e31b47956fa667ec656a185034e910

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-core/bc3cf610-1d9b-4dec-abb3-1fced15c0c28%40googlegroups.com.

Reply via email to