Module: Userify::Authentication

Defined in:
lib/userify/authentication.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(controller) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/userify/authentication.rb', line 4

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