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

Validation Methods #13

Open
ObjColumnist opened this issue Apr 10, 2015 · 1 comment
Open

Validation Methods #13

ObjColumnist opened this issue Apr 10, 2015 · 1 comment

Comments

@ObjColumnist
Copy link

It would be great to have some convenience methods to validate that there is a translation, to mimic validated_presence_of

Im thinking if you only need a translation:

validates_presence_of_translation :title

and if you need to have a translation in a fixed amount of locales:

validates_presence_of_translation :title, locales: [:en, :fr]
@joallard
Copy link
Collaborator

@ObjColumnist Seems reasonable. Would you be able to PR some tests?

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