Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n helpers #20

Open
nofxx opened this issue Jul 19, 2015 · 1 comment
Open

I18n helpers #20

nofxx opened this issue Jul 19, 2015 · 1 comment

Comments

@nofxx
Copy link

nofxx commented Jul 19, 2015

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

@thetron
Copy link
Owner

thetron commented Jul 22, 2015

@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!) 😄 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants