Browse Source

comment

main
pvincent 2 months ago
parent
commit
9779550180
  1. 1
      lib/semantic/subscribers/action_view.rb

1
lib/semantic/subscribers/action_view.rb

@ -15,6 +15,7 @@ module Semantic
identifier = pathname(event.payload[:identifier]) identifier = pathname(event.payload[:identifier])
partial_savings = @partials[event.transaction_id] ||= {} partial_savings = @partials[event.transaction_id] ||= {}
partial_saving = partial_savings[identifier] ||= { partial_saving = partial_savings[identifier] ||= {
# TODO: might be smarter: origins=[{caller:, count:}]
count: 0, count: 0,
first_origin: Rails.backtrace_cleaner.clean(caller)[1] first_origin: Rails.backtrace_cleaner.clean(caller)[1]
} }

Loading…
Cancel
Save