Sha256: f02b9f6f61d54a4c953a3a38ca6f9f0753f6da64cebc134b71cc8cba7a2ae18e

Contents?: true

Size: 430 Bytes

Versions: 9

Compression:

Stored size: 430 Bytes

Contents

module Authpds
  module Session
    module InstitutionAttributes
      def institution_attributes
        @institution_attributes ||=
          (controller.current_primary_institution.nil? or controller.current_primary_institution.auth.nil?) ?
            {} : controller.current_primary_institution.auth
      end

      def insitution_code
        @institution_code ||= institution_attributes["code"]
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
authpds-0.2.9 lib/authpds/session/institution_attributes.rb
authpds-0.2.8 lib/authpds/session/institution_attributes.rb
authpds-0.2.7 lib/authpds/session/institution_attributes.rb
authpds-0.2.6 lib/authpds/session/institution_attributes.rb
authpds-0.2.5 lib/authpds/session/institution_attributes.rb
authpds-0.2.4 lib/authpds/session/institution_attributes.rb
authpds-0.2.3 lib/authpds/session/institution_attributes.rb
authpds-0.2.2 lib/authpds/session/institution_attributes.rb
authpds-0.2.1 lib/authpds/session/institution_attributes.rb