Commit 17ad1119935a001f23e0fe995763edd7ffb00653

Authored by Andrew Kane
1 parent b43688e7

Moved attach_to call [skip ci]

lib/searchkick.rb
@@ -31,6 +31,8 @@ if defined?(ActiveSupport::Notifications) @@ -31,6 +31,8 @@ if defined?(ActiveSupport::Notifications)
31 ActiveSupport.on_load(:action_controller) do 31 ActiveSupport.on_load(:action_controller) do
32 include Searchkick::ControllerRuntime 32 include Searchkick::ControllerRuntime
33 end 33 end
  34 +
  35 + Searchkick::LogSubscriber.attach_to :searchkick
34 end 36 end
35 37
36 module Searchkick 38 module Searchkick
lib/searchkick/log_subscriber.rb
@@ -55,5 +55,3 @@ module Searchkick @@ -55,5 +55,3 @@ module Searchkick
55 end 55 end
56 end 56 end
57 end 57 end
58 -  
59 -Searchkick::LogSubscriber.attach_to :searchkick