Commit 9b38af62353f67ff3265148b6813c225d4b01e1f

Authored by Andrew Kane
1 parent a5d15c54

Restored url [skip ci]

lib/searchkick/controller_runtime.rb
  1 +# based on https://gist.github.com/mnutt/566725
1 2 module Searchkick
2   - # https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/controller_runtime.rb
3 3 module ControllerRuntime
4 4 extend ActiveSupport::Concern
5 5  
... ...
lib/searchkick/log_subscriber.rb
  1 +# based on https://gist.github.com/mnutt/566725
1 2 module Searchkick
2   - # https://github.com/rails/rails/blob/master/activerecord/lib/active_record/log_subscriber.rb
3 3 class LogSubscriber < ActiveSupport::LogSubscriber
4 4 def self.runtime=(value)
5 5 Thread.current[:searchkick_runtime] = value
... ...