lib/rasti/form.rb in rasti-form-1.1.1 vs lib/rasti/form.rb in rasti-form-2.0.0

- old
+ new

@@ -96,10 +96,10 @@ end rescue CastError => error errors[attr_name] << error.message - rescue ValidationError => error + rescue MultiCastError, ValidationError => error error.errors.each do |inner_name, inner_errors| inner_errors.each { |message| errors["#{attr_name}.#{inner_name}"] << message } end end end \ No newline at end of file