Module: Raven::Rails::ControllerTransaction

Defined in:
lib/raven/integrations/rails/controller_transaction.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/raven/integrations/rails/controller_transaction.rb', line 4

def self.included(base)
  base.around_action do |controller, block|
    Raven.context.transaction.push "#{controller.class}##{controller.action_name}"
    block.call
    Raven.context.transaction.pop
  end
end