diff options
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/action_mailer/caching.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/actionmailer/lib/action_mailer/caching.rb b/actionmailer/lib/action_mailer/caching.rb index 319909d1a7..8e659981a1 100644 --- a/actionmailer/lib/action_mailer/caching.rb +++ b/actionmailer/lib/action_mailer/caching.rb @@ -8,12 +8,15 @@ module ActionMailer include ActionDispatch::Caching end - def perform_caching - Base.perform_caching + def instrument_payload(key) + { + mailer: mailer_name, + key: key + } end - def controller_name - "ActionMailer" + def instrument_name + "action_mailer" end end end |