Last active
August 21, 2017 04:32
-
-
Save Frank004/b90a01ef54b8d0402c0ab8cb650abfd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check_has_score | |
if foos.where(overall_score: 0.0).any? | |
errors.add(:base, "No puede cerrar la Bar hasta que todas los foo tengan puntuación") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment