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-7.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-6.2.2 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-6.2.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-6.1.1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-6.1.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-6.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-5.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.1.2 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.1.1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.1.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.7 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.6 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.5 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.4 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.3 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.2 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.0 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-3.0.2 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails_user-4.0.0.beta1 app/models/ucb_rails_user/user_session_manager/ldap_person_user_wrapper.rb