lib/saml/kit/invalid_document.rb in saml-kit-1.1.0 vs lib/saml/kit/invalid_document.rb in saml-kit-1.2.0

- old
+ new

@@ -5,10 +5,10 @@ # This class represents an invalid SAML # document that could not be parsed. # {include:file:spec/saml/kit/invalid_document_spec.rb} class InvalidDocument < Document validate do |model| - model.errors[:base] << model.error_message(:invalid) + model.errors.add(:base, model.error_message(:invalid)) end def initialize(xml, *) super(xml, name: 'InvalidDocument') end