lib/sidekiq/extensions/action_mailer.rb in sidekiq-3.2.3 vs lib/sidekiq/extensions/action_mailer.rb in sidekiq-3.2.4

- old
+ new

@@ -12,10 +12,10 @@ class DelayedMailer include Sidekiq::Worker def perform(yml) (target, method_name, args) = YAML.load(yml) - msg = target.__send__(method_name, *args) + msg = target.public_send(method_name, *args) # The email method can return nil, which causes ActionMailer to return # an undeliverable empty message. msg.deliver if msg && (msg.to || msg.cc || msg.bcc) && msg.from end end