Skip to content

Instantly share code, notes, and snippets.

@romulostorel
Created March 1, 2013 16:02
Show Gist options
  • Save romulostorel/5065605 to your computer and use it in GitHub Desktop.
Save romulostorel/5065605 to your computer and use it in GitHub Desktop.
validate :something
def something
errors.add(:person_in_charges, "mensagem_de_erro") if person_in_changes.empty?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment