Module: ActionController::AuthenticApplication

Defined in:
lib/action_controller/authentic_application.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Module automatically mixed into the all controllers



6
7
8
9
10
11
12
13
# File 'lib/action_controller/authentic_application.rb', line 6

def self.included(base)
  base.class_eval do
    include InstanceMethods
  end
  # Inclusion hook to make #current_user and #logged_in?, etc available as ActionView helper methods.
  base.send :helper_method, :current_user_session, :current_user, :logged_in?, :admin?, :is_me?, :is_owner?
  base.send :filter_parameter_logging, :password, :password_confirmation
end