Module: Trailblazer::Pro::Call::Activity
- Defined in:
- lib/trailblazer/pro/call/activity.rb
Instance Method Summary collapse
-
#call(activity, ctx) ⇒ Object
This is the monkey-patch for #call.
Instance Method Details
#call(activity, ctx) ⇒ Object
This is the monkey-patch for #call. Here we decide whether to use tracing, and what to render, or if we should bypass tracing.
8 9 10 11 12 13 14 15 16 |
# File 'lib/trailblazer/pro/call/activity.rb', line 8 def call(activity, ctx) trace_strategy, = Pro::Session.trace_guards.(activity, ctx) if trace_strategy return trace_strategy.invoke(activity, [ctx, {}], present_options: ) else return super end end |