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

Already on GitHub? Sign in to your account

Add :validate => true for handle validation on translated attributes #9

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

dinatih commented Jul 5, 2011

Use:
class Model
puret :name
validates_presence_of :name
end

class ModelTranslation
puret_for :model
end

@dinatih dinatih Add :validate => true for handle validation on translated attributes
Use:
class Model
  puret :name
  validates_presence_of :name
end

class ModelTranslation
  puret_for :model
end
fd0887d

@dinatih dinatih closed this Jul 24, 2016

@dinatih dinatih deleted the dinatih:patch-1 branch Jul 24, 2016

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