lib/granite/form/model/validations/nested.rb in granite-form-0.1.1 vs lib/granite/form/model/validations/nested.rb in granite-form-0.2.0

- old
+ new

@@ -17,10 +17,10 @@ if ActiveModel.version >= Gem::Version.new('6.1.0') def self.import_errors(from, to, prefix) from.each do |error| key = "#{prefix}.#{error.attribute}" - to.import(error, attribute: key) unless to.added?(key, error.type, error.options) + to.import(error, attribute: key) unless to.messages_for(key).include?(error.message) end end else # up to 6.0.x def self.import_errors(from, to, prefix)