Skip to content

Commit

Permalink
Revert "Remove deprecated Transaction#store"
Browse files Browse the repository at this point in the history
This reverts commit 4a4cb092929e242b4530a2e6940a48c7610b7a98, as
c85f39e
was removed from the project tree.
  • Loading branch information
jeffkreeftmeijer committed Nov 26, 2020
1 parent 0e5cd6f commit ba76b65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/appsignal/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def initialize(transaction_id, namespace, request, options = {})
@paused = false
@discarded = false
@tags = {}
@store = Hash.new({})
@options = options
@options[:params_method] ||= :params

Expand Down Expand Up @@ -130,6 +131,10 @@ def discarded?
@discarded == true
end

def store(key)
@store[key]
end

def params
return @params if defined?(@params)
request_params
Expand Down

0 comments on commit ba76b65

Please sign in to comment.