lib/tunemygc/spies/action_controller.rb in tunemygc-1.0.52 vs lib/tunemygc/spies/action_controller.rb in tunemygc-1.0.53

- old
+ new

@@ -3,28 +3,28 @@ require 'tunemygc/subscriber' module TuneMyGc class StartRequestSubscriber < Subscriber def start(name, id, payload) - TuneMyGc.processing_started({:path => payload[:path], :method => payload[:method], :controller => payload[:controller], :action => payload[:action]}) + TuneMyGc.processing_started({:controller => payload[:controller], :action => payload[:action]}) end # Rails 3 def call(*args) event = ActiveSupport::Notifications::Event.new(*args) - TuneMyGc.processing_started({:path => event.payload[:path], :method => event.payload[:method], :controller => event.payload[:controller], :action => event.payload[:action]}) + TuneMyGc.processing_started({:controller => event.payload[:controller], :action => event.payload[:action]}) end end class EndRequestSubscriber < Subscriber def finish(name, id, payload) - TuneMyGc.processing_ended({:path => payload[:path], :method => payload[:method], :controller => payload[:controller], :action => payload[:action]}) + TuneMyGc.processing_ended({:controller => payload[:controller], :action => payload[:action]}) end # Rails 3 def call(*args) event = ActiveSupport::Notifications::Event.new(*args) - TuneMyGc.processing_ended({:path => event.payload[:path], :method => event.payload[:method], :controller => event.payload[:controller], :action => event.payload[:action]}) + TuneMyGc.processing_ended({:controller => event.payload[:controller], :action => event.payload[:action]}) end end end module TuneMyGc \ No newline at end of file