Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Check for around_action
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Feb 23, 2017
1 parent 5342658 commit 5479f82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/timber/probes/action_controller_user_context.rb
Expand Up @@ -6,7 +6,11 @@ class ActionControllerUserContext < Probe
module AroundFilter
def self.included(klass)
klass.class_eval do
around_filter :_timber_capture_user_context
if klass.respond_to?(:around_action)
around_action :_timber_capture_user_context
else
around_filter :_timber_capture_user_context
end

private
def _timber_capture_user_context
Expand Down

0 comments on commit 5479f82

Please sign in to comment.