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 of translated attributes #4

Closed
np0 opened this issue Mar 15, 2011 · 3 comments
Closed

validation of translated attributes #4

np0 opened this issue Mar 15, 2011 · 3 comments

Comments

@np0
Copy link

np0 commented Mar 15, 2011

Hello,
I can't figure out how to make validation of translated attributes work.
Here is my very simple model :

class Category < ActiveRecord::Base
  puret :name
  validates_associated :translations
end

class CategoryTranslation < ActiveRecord::Base
  puret_for :category
  validates_presence_of :name
  validates_uniqueness_of :name
end

Any ideas how to make the validation work ?
Thanks Nicolas.

@jo
Copy link
Owner

jo commented Apr 28, 2011

I just merged a pull request of @jacobat, which might solve that problem.
Can you try again?

@dinatih
Copy link

dinatih commented Jul 5, 2011

That doesn't work. But I pull a request for this. (This my first pull request :) )

@jo
Copy link
Owner

jo commented May 25, 2012

should work now.

@jo jo closed this as completed May 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants