Class: TuneMyGc::StartRequestSubscriber
- Inherits:
-
Subscriber
- Object
- Subscriber
- TuneMyGc::StartRequestSubscriber
- Defined in:
- lib/tunemygc/spies/action_controller.rb
Instance Method Summary collapse
Methods inherited from Subscriber
Instance Method Details
#call(*args) ⇒ Object
Rails 3
12 13 14 15 |
# File 'lib/tunemygc/spies/action_controller.rb', line 12 def call(*args) event = ActiveSupport::Notifications::Event.new(*args) TuneMyGc.processing_started({:controller => event.payload[:controller], :action => event.payload[:action]}) end |
#start(name, id, payload) ⇒ Object
7 8 9 |
# File 'lib/tunemygc/spies/action_controller.rb', line 7 def start(name, id, payload) TuneMyGc.processing_started({:controller => payload[:controller], :action => payload[:action]}) end |