lib/sunspot/rails/solr_instrumentation.rb in sunspot_rails-2.0.0.pre.111215 vs lib/sunspot/rails/solr_instrumentation.rb in sunspot_rails-2.0.0.pre.120415
- old
+ new
@@ -5,16 +5,15 @@
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
+end