lib/rasti/form/validable.rb in rasti-form-1.0.1 vs lib/rasti/form/validable.rb in rasti-form-1.0.2
- old
+ new
@@ -8,10 +8,10 @@
@errors ||= Hash.new { |hash, key| hash[key] = [] }
end
def validate!
validate
- raise ValidationError.new(errors) unless errors.empty?
+ raise ValidationError.new(self, errors) unless errors.empty?
end
def validate
end