Commit 9b38af62353f67ff3265148b6813c225d4b01e1f
1 parent
a5d15c54
Exists in
master
and in
2 other branches
Restored url [skip ci]
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/searchkick/controller_runtime.rb
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 | ... | ... |