Top Level Namespace
Defined Under Namespace
Modules: Delayed, Rake, Raven, URI
Instance Method Summary
collapse
Instance Method Details
#filter_context(context) ⇒ Object
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/raven/integrations/sidekiq.rb', line 34
def filter_context(context)
case context
when Array
context.map { |arg| filter_context(arg) }
when Hash
Hash[context.map { |key, value| filter_context_hash(key, value) }]
else
context
end
end
|
#filter_context_hash(key, value) ⇒ Object
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/raven/integrations/sidekiq.rb', line 45
def filter_context_hash(key, value)
(key = key[3..-1]) if key [0..3] == "_aj_"
[key, filter_context(value)]
end
|