Module: Marginalia
- Defined in:
- lib/marginalia.rb,
lib/marginalia/comment.rb,
lib/marginalia/railtie.rb,
lib/marginalia/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/marginalia.rb', line 115 def self.with_annotation(comment, &block) Marginalia::Comment.inline_annotations.push(comment) block.call if block.present? ensure Marginalia::Comment.inline_annotations.pop end |