lib/sunspot/rails/solr_instrumentation.rb in sunspot_rails-1.3.1 vs lib/sunspot/rails/solr_instrumentation.rb in sunspot_rails-1.3.2
- old
+ new
@@ -5,15 +5,14 @@
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
+
+ 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
\ No newline at end of file