From ef157232a353d9f2ec1a1c870f85c82f913488d1 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Thu, 23 Feb 2017 21:11:55 -0600 Subject: [PATCH] Add interface gif --- README.md | 2 +- lib/timber/probes/action_controller_user_context.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b7b8736..20be551f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 🌲 Timber - Master your Ruby apps with structured logging

- +

[![ISC License](https://img.shields.io/badge/license-ISC-ff69b4.svg)](LICENSE.md) diff --git a/lib/timber/probes/action_controller_user_context.rb b/lib/timber/probes/action_controller_user_context.rb index 1aeefe49..caaebd6d 100644 --- a/lib/timber/probes/action_controller_user_context.rb +++ b/lib/timber/probes/action_controller_user_context.rb @@ -44,6 +44,8 @@ def initialize end def insert! + ActiveSupport.on_load(:action_controller) do + include AroundFilter return true if ActionController::Base.include?(AroundFilter) ActionController::Base.send(:include, AroundFilter) end