Module: Clearance::App::Controllers::ApplicationController

Defined in:
lib/clearance/app/controllers/application_controller.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(controller) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/clearance/app/controllers/application_controller.rb', line 6

def self.included(controller)
  controller.send(:include, InstanceMethods)

  controller.class_eval do
    helper_method :current_user
    helper_method :signed_in?

    hide_action :current_user, :signed_in?
  end
end