Class: Lograge::LogSubscribers::ActionController

Inherits:
Base
  • Object
show all
Defined in:
lib/lograge/log_subscribers/action_controller.rb

Instance Method Summary collapse

Methods inherited from Base

#logger

Instance Method Details

#process_action(event) ⇒ Object



6
7
8
# File 'lib/lograge/log_subscribers/action_controller.rb', line 6

def process_action(event)
  process_main_event(event)
end

#redirect_to(event) ⇒ Object



10
11
12
# File 'lib/lograge/log_subscribers/action_controller.rb', line 10

def redirect_to(event)
  RequestStore.store[:lograge_location] = event.payload[:location]
end

#unpermitted_parameters(event) ⇒ Object



14
15
16
17
# File 'lib/lograge/log_subscribers/action_controller.rb', line 14

def unpermitted_parameters(event)
  RequestStore.store[:lograge_unpermitted_params] ||= []
  RequestStore.store[:lograge_unpermitted_params].concat(event.payload[:keys])
end