From 545c67f30eeac76f4caf9de5fd361841a3f89c91 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Mon, 2 Mar 2015 13:14:09 -0800 Subject: [PATCH] Undeprecate actionmailer delay, fixes #2186 --- Changes.md | 5 +++++ lib/sidekiq/extensions/action_mailer.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changes.md b/Changes.md index 69f33028..8199fa7a 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,8 @@ +HEAD +----------- + +- Undeprecate delay extension for ActionMailer 4.2+ . [#2186] + 3.3.2 ----------- diff --git a/lib/sidekiq/extensions/action_mailer.rb b/lib/sidekiq/extensions/action_mailer.rb index 77fb77a8..34de4d34 100644 --- a/lib/sidekiq/extensions/action_mailer.rb +++ b/lib/sidekiq/extensions/action_mailer.rb @@ -28,7 +28,6 @@ module Sidekiq def deliver(msg) if msg.respond_to?(:deliver_now) - ActiveSupport::Deprecation.warn('`ActionMailer.delay.method` is deprecated. Use `ActionMailer.method.deliver_later` instead and configure ActiveJob to use Sidekiq.') # Rails 4.2/5.0 msg.deliver_now else