Sha256: 2ab4f0883ab3d177a14693c53cd6a5a091610f8fee59c778194b883d96f22d84
Contents?: true
Size: 515 Bytes
Versions: 17
Compression:
Stored size: 515 Bytes
Contents
module Sunspot module Rails module SolrInstrumentation extend ActiveSupport::Concern included do alias_method_chain :execute, :as_instrumentation end 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
Version data entries
17 entries across 17 versions & 5 rubygems