mongoid-enum icon indicating copy to clipboard operation
mongoid-enum copied to clipboard

I18n helpers

Open nofxx opened this issue 10 years ago • 1 comments

Way before DHH enum arrived there was a lot of solutions for this and one I took to maintain (AR pain) was Symbolize.

A nice feature I've ported from it is i18n helpers: _text to get the value translated quickly and _values to get all translations (good for drop down).

They are pretty cheap oneliners, but very handy (at least for my apps). If you would like I'll create a pull request. https://github.com/nofxx/mongoid-enum/tree/merge

nofxx avatar Jul 19 '15 08:07 nofxx

@nofxx Great suggestion, I definitely want to include this in v1.0.0. I'm planning to break the library down into some better modules, and I think this might include a separate I18n module. I'll keep this issue open to track and updates to this feature though..

Thanks for all your help and suggestions (across all my gems!) :smile: :beers:

thetron avatar Jul 22 '15 06:07 thetron