Skip to content

Commit

Permalink
Prepend the transaction around_action so libraries with controllers c…
Browse files Browse the repository at this point in the history
…an alter the value (#887)
  • Loading branch information
drcapulet authored and HazAT committed Jul 30, 2019
1 parent e44c5ed commit ee99867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/raven/integrations/rails/controller_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Raven
class Rails
module ControllerTransaction
def self.included(base)
base.around_action do |controller, block|
base.prepend_around_action do |controller, block|
Raven.context.transaction.push "#{controller.class}##{controller.action_name}"
block.call
Raven.context.transaction.pop
Expand Down

0 comments on commit ee99867

Please sign in to comment.