Skip to content

Commit 749934b

Browse files
PR feedback
1 parent 34ae0c6 commit 749934b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

activesupport/lib/active_support/event_reporter.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def tags
1515

1616
def with_tags(*args, **kwargs)
1717
existing_tags = tags
18-
tags = existing_tags&.dup || {}
18+
tags = existing_tags.dup
1919
tags.merge!(resolve_tags(args, kwargs))
2020
new_tags = tags.freeze
2121

@@ -156,8 +156,9 @@ def clear
156156
# and should be used for metadata associated with the execution context.
157157
# Context can be set via the +set_context+ method:
158158
#
159-
# Rails.event.set_context(request_id: "abcd123", user_agent: TestAgent")
159+
# Rails.event.set_context(request_id: "abcd123", user_agent: "TestAgent")
160160
# Rails.event.notify("user_created", { id: 123 })
161+
#
161162
# # Emits event:
162163
# # {
163164
# # name: "user_created",
@@ -366,6 +367,7 @@ def debug(name_or_object, payload = nil, caller_depth: 1, **kwargs)
366367
# Rails.event.tagged("graphql") do
367368
# Rails.event.notify("user.created", { id: 123 })
368369
# end
370+
#
369371
# # Emits event:
370372
# # {
371373
# # name: "user.created",
@@ -421,6 +423,7 @@ def tagged(*args, **kwargs, &block)
421423
# Rails.event.tagged("graphql") do
422424
# Rails.event.notify("user_created", { id: 123 })
423425
# end
426+
#
424427
# # Emits event:
425428
# # {
426429
# # name: "user_created",

0 commit comments

Comments
 (0)