Module: Headstart::Authentication::ClassMethods

Defined in:
lib/headstart/authentication.rb

Class Method Summary collapse

Class Method Details

.extended(controller) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/headstart/authentication.rb', line 10

def self.extended(controller)
  controller.helper_method :current_user, :signed_in?, 
                           :signed_out?,  :impersonating?,
                           :get_full_app_path
  controller.hide_action   :current_user, :current_user=,
                           :signed_in?,   :signed_out?,
                           :sign_in,      :sign_out,
                           :authenticate, :deny_access,
                           :impersonating?, :get_full_app_path
end