lib/saml/elements/audience_restriction.rb in libsaml-2.19.3 vs lib/saml/elements/audience_restriction.rb in libsaml-2.19.4

- old
+ new

@@ -7,14 +7,14 @@ namespace 'saml' has_many :audiences, Saml::Elements::Audience def audience - Array(audiences).first + Array(audiences).first.try(:value) end - def audience=(audience) - self.audiences = [audience] + def audience=(value) + self.audiences = [ Saml::Elements::Audience.new(value: value) ] end end end end