lib/metadata/saml.rb
def attribute_base(attr, scope)
      scope.parent[:Name] = attr.name
      scope.parent[:NameFormat] = attr.name_format.uri if attr.name_format

      scope.parent[:FriendlyName] = attr.friendly_name if attr.friendly_name.present?

      attr.attribute_values { |ds| ds.order(:value) }.each do |attr_val|
        attribute_value(attr_val)
      end
    end
# Prevent NoMethodError by defining before any usage
Prevent NoMethodError by defining before any usage
Prevent NoMethodError by defining before any usage
def attribute_base(attr, scope)
      scope.parent[:Name] = attr.name
      scope.parent[:NameFormat] = attr.name_format.uri if attr.name_format
      scope.parent[:FriendlyName] = attr.friendly_name if attr.friendly_name.present?
      attr.attribute_values { |ds| ds.order(:value) }.each do |attr_val|
        attribute_value(attr_val)
      end
    end
def attribute_base ( attr , scope ) scope . parent [ :Name ] = attr . name scope . parent [ :NameFormat ] = attr . name_format . uri if attr . name_format scope . parent [ :FriendlyName ] = attr . friendly_name if attr . friendly_name . present? attr . attribute_values { | ds | ds . order ( :value ) } . each do | attr_val | attribute_value ( attr_val ) end end
Prevent NoMethodError by defining before any usage
Prevent NoMethodError by defining before any usage
attr
scope