Class: Lesli::ApplicationLesliController

Inherits:
ApplicationController show all
Includes:
CustomizationInterface, RequesterInterface, ResponderInterface, LesliAudit::LoggerInterface, LesliShield::AuthenticationInterface, LesliShield::AuthorizationInterface
Defined in:
app/controllers/lesli/application_lesli_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#engine_path, #query

Instance Method Summary collapse

Methods included from CustomizationInterface

#set_customizer

Methods included from ResponderInterface

#respond_with_action, #respond_with_http, #respond_with_json, #respond_with_json_not_found, #respond_with_json_unauthorized, #respond_with_lesli, #respond_with_not_found, #respond_with_pagination, #respond_with_unauthorized, #stream_redirection

Methods included from RequesterInterface

#set_locale, #set_requester

Methods inherited from ApplicationController

#initialize

Constructor Details

This class inherits a constructor from Lesli::ApplicationController

Instance Method Details

#log(payload) ⇒ Object



59
60
61
62
63
64
65
# File 'app/controllers/lesli/application_lesli_controller.rb', line 59

def log(payload)
    payload[:engine] = self.class.module_parent
    payload[:source] = self.class.name
    payload[:action] = action_name
    payload[:session_id] = session[:user_session_id]
    current_user.log(**payload)
end