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



4
5
6
# File 'lib/lograge/log_subscribers/action_controller.rb', line 4

def process_action(event)
  process_main_event(event)
end

#redirect_to(event) ⇒ Object



8
9
10
# File 'lib/lograge/log_subscribers/action_controller.rb', line 8

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

#unpermitted_parameters(event) ⇒ Object



12
13
14
15
# File 'lib/lograge/log_subscribers/action_controller.rb', line 12

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