Hmmm.. I now have done some custom validation in the model:
validate :validate_name_translation
def name_translated?
!name.nil?
end
def validate_name_translation
errors.add :name, :blank if not name_translated?
end
Support for this kind of validations would be really cool in
Globalize2 :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---