Module: HumbleAuth::Helper

Defined in:
lib/humble_auth/helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(controller) ⇒ Object



3
4
5
6
7
# File 'lib/humble_auth/helper.rb', line 3

def self.included(controller)
  controller.class_eval do
    helper_method :authenticated?
  end
end

Instance Method Details

#authenticated?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/humble_auth/helper.rb', line 9

def authenticated?
  authentication.check
end

#reset_authenticationObject



13
14
15
# File 'lib/humble_auth/helper.rb', line 13

def reset_authentication
  authentication.reset
end