Sha256: 1c931e1772cabd55924a4f81574b3c2e2b94538994ac6d980da7724d42d8282a
Contents?: true
Size: 644 Bytes
Versions: 18
Compression:
Stored size: 644 Bytes
Contents
DependencyDetection.defer do depends_on do defined?(::Sunspot) end executes do ::Sunspot.module_eval do class << self %w(index index!).each do |method| add_method_tracer method, 'SolrClient/Sunspot/index' end add_method_tracer :commit, 'SolrClient/Sunspot/commit' %w[search more_like_this].each do |method| add_method_tracer method, 'SolrClient/Sunspot/query' end %w[remove remove! remove_by_id remove_by_id! remove_all remove_all!].each do |method| add_method_tracer method, 'SolrClient/Sunspot/delete' end end end end end
Version data entries
18 entries across 18 versions & 2 rubygems