Commit ddd7a46
2017-11-17 23:51:56
1 parent
4070928
Changed files (1)
saml-kit
lib
saml
saml-kit/lib/saml/kit/invalid_document.rb
@@ -1,21 +1,12 @@
module Saml
module Kit
- class InvalidDocument
- include ActiveModel::Validations
- include XsdValidatable
- attr_reader :raw, :name
-
+ class InvalidDocument < Document
validate do |model|
model.errors[:base] << model.error_message(:invalid)
end
- def initialize(raw)
- @raw = raw
- @name = "InvalidDocument"
- end
-
- def to_xml
- raw
+ def initialize(xml)
+ super(xml, "InvalidDocument")
end
end
end