Module: StinkingToe
- Defined in:
- lib/stinkingtoe.rb,
lib/stinkingtoe/comment.rb,
lib/stinkingtoe/railtie.rb,
lib/stinkingtoe/sidekiq_instrumentation.rb
Defined Under Namespace
Modules: ActionControllerInstrumentation, ActiveRecordInstrumentation, Comment, SidekiqInstrumentation Classes: Railtie
Class Method Summary collapse
Class Method Details
.with_annotation(comment, &block) ⇒ Object
115 116 117 118 119 120 |
# File 'lib/stinkingtoe.rb', line 115 def self.with_annotation(comment, &block) StinkingToe::Comment.inline_annotations.push(comment) block.call if block.present? ensure StinkingToe::Comment.inline_annotations.pop end |