Module: Clearance::Authentication::ClassMethods

Defined in:
lib/clearance/authentication.rb

Class Method Summary collapse

Class Method Details

.extended(controller) ⇒ Object



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

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

end