Sha256: c4b9c5580dcaeffd60a5c573bfbcd8051ba00b96f891e6044f40f0da5f2d4715
Contents?: true
Size: 564 Bytes
Versions: 8
Compression:
Stored size: 564 Bytes
Contents
module Sunspot module Rails module SolrInstrumentation extend ActiveSupport::Concern included do alias_method_chain :execute, :as_instrumentation end module InstanceMethods def execute_with_as_instrumentation(path, params={}, *extra) ActiveSupport::Notifications.instrument("request.rsolr", {:path => path, :parameters => params}) do execute_without_as_instrumentation(path, params, *extra) end end end end end end
Version data entries
8 entries across 8 versions & 3 rubygems