Sha256: d9287668a5f54f5f9db27d449460edc73b4b6b744402ed0e074ec187c0f9450f

Contents?: true

Size: 524 Bytes

Versions: 30

Compression:

Stored size: 524 Bytes

Contents

module UcbRailsUser
  module UserSessionManager

    class LdapPersonUserWrapper
      attr_accessor :ldap_person_entry

      def initialize(ldap_person_entry)
        self.ldap_person_entry = ldap_person_entry
      end

      def id
        uid
      end

      def admin?
        false
      end

      def method_missing(method, *args, &block)
        if ldap_person_entry.respond_to?(method)
          ldap_person_entry.send(method, *args, &block)
        else
          super
        end
      end
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ucb_rails_user-3.0.1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-3.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-2.0.1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-2.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-1.1.3 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-1.1.2 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-1.1.1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-1.1.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-1.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-0.9.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb