Sha256: bba7dbb5a308f8a170f242489db1f586fbe14108ee233ec360d186be69deaf5e

Contents?: true

Size: 547 Bytes

Versions: 13

Compression:

Stored size: 547 Bytes

Contents

module UcbRails
  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

13 entries across 13 versions & 1 rubygems

Version Path
ucb_rails-0.0.14 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.13 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.12 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.11 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.10 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.9 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.8 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.7 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.6 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.5 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.4 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.3 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb
ucb_rails-0.0.2 app/models/ucb_rails/user_session_manager/ldap_person_user_wrapper.rb