lib/sunspot/rails/solr_instrumentation.rb in sunspot_rails-2.2.6 vs lib/sunspot/rails/solr_instrumentation.rb in sunspot_rails-2.2.7

- old
+ new

@@ -2,12 +2,12 @@ module Rails module SolrInstrumentation extend ActiveSupport::Concern included do - alias_method_chain :send_and_receive, :as_instrumentation + alias_method :send_and_receive_without_as_instrumentation, :send_and_receive + alias_method :send_and_receive, :send_and_receive_with_as_instrumentation end - def send_and_receive_with_as_instrumentation(path, opts) parameters = (opts[:params] || {}) parameters.merge!(opts[:data]) if opts[:data].is_a? Hash payload = {:path => path, :parameters => parameters}