Module: BlueLightSpecial::Authentication::ClassMethods

Defined in:
lib/blue_light_special/authentication.rb

Class Method Summary collapse

Class Method Details

.extended(controller) ⇒ Object



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

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