lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb in logstasher-0.7.1 vs lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb in logstasher-0.8.0
- old
+ new
@@ -1,7 +1,8 @@
module ActionController
module Instrumentation
+ alias :orig_process_action :process_action
def process_action(*args)
raw_payload = {
:controller => self.class.name,
:action => self.action_name,
:params => request.filtered_parameters,
@@ -42,8 +43,9 @@
payload[key] = value
end
result
end
end
+ alias :logstasher_process_action :process_action
end
end