Skip to content

Commit

Permalink
Undeprecate actionmailer delay, fixes sidekiq#2186
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 2, 2015
1 parent daaba11 commit 545c67f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes.md
@@ -1,3 +1,8 @@
HEAD
-----------

- Undeprecate delay extension for ActionMailer 4.2+ . [#2186]

3.3.2
-----------

Expand Down
1 change: 0 additions & 1 deletion lib/sidekiq/extensions/action_mailer.rb
Expand Up @@ -28,7 +28,6 @@ def perform(yml)

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
Expand Down

0 comments on commit 545c67f

Please sign in to comment.