Module: AuthLh::Authentication

Defined in:
lib/auth_lh/authentication.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/auth_lh/authentication.rb', line 3

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#auth_userObject



7
8
9
10
11
12
13
# File 'lib/auth_lh/authentication.rb', line 7

def auth_user
  if @auth_user.nil?
    @auth_user = self.class.find_external()
  end

  @auth_user
end

#auth_user=(val) ⇒ Object



15
16
17
# File 'lib/auth_lh/authentication.rb', line 15

def auth_user=(val)
  @auth_user = val
end