Permalink
Browse files

Changing before validations to run before errors clear so I have hook…

… in MM.
  • Loading branch information...
1 parent 0d14e97 commit 408f831fdbd9830b643dde68aa15d2feafd6bc38 @jnunemaker committed Mar 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/validatable/validatable_instance_methods.rb
@@ -19,8 +19,8 @@ def errors
end
def valid_for_group?(group) #:nodoc:
- run_before_validations
errors.clear
+ run_before_validations
self.class.validate_children(self, group)
self.validate_group(group)
errors.empty?

0 comments on commit 408f831

Please sign in to comment.