Skip to content

Commit

Permalink
present which exactly repository is instrumented
Browse files Browse the repository at this point in the history
  • Loading branch information
pjurewicz committed Mar 21, 2024
1 parent 80b8830 commit 366e4bd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ def respond_to_missing?(method_name, _include_private)
repository.respond_to?(method_name)
end

def specification
"Instrumented " +
if repository.respond_to?(:specification)
repository.specification
else
repository.class.to_s
end
end

private

attr_reader :repository, :instrumentation
Expand Down

0 comments on commit 366e4bd

Please sign in to comment.