mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #27926 from st0012/freeze-cache-instrument-name
Freeze fragment cache related instrument name.
This commit is contained in:
commit
f06ee2a703
3 changed files with 3 additions and 3 deletions
|
@ -972,7 +972,7 @@ module ActionMailer
|
|||
end
|
||||
|
||||
def instrument_name
|
||||
"action_mailer"
|
||||
"action_mailer".freeze
|
||||
end
|
||||
|
||||
ActiveSupport.run_load_hooks(:action_mailer, self)
|
||||
|
|
|
@ -136,7 +136,7 @@ module AbstractController
|
|||
|
||||
def instrument_fragment_cache(name, key) # :nodoc:
|
||||
payload = instrument_payload(key)
|
||||
ActiveSupport::Notifications.instrument("#{name}.#{instrument_name}", payload) { yield }
|
||||
ActiveSupport::Notifications.instrument("#{name}.#{instrument_name}".freeze, payload) { yield }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -38,7 +38,7 @@ module ActionController
|
|||
end
|
||||
|
||||
def instrument_name
|
||||
"action_controller"
|
||||
"action_controller".freeze
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue