Sha256: f0253ffcc5ead60a1745ae520c288653995e8b4a3d8bb93293a4967ef119a882

Contents?: true

Size: 402 Bytes

Versions: 12

Compression:

Stored size: 402 Bytes

Contents

module Resque
  module Mailer
    module ClassMethods
      def perform(action, *args)
        args = ResquePerformLater.args_from_resque(args)
        self.send(:new, action, *args).message.deliver
      end
    end

    class MessageDecoy
      def deliver
        args = ResquePerformLater.args_to_resque(@args)
        resque.enqueue(@mailer_class, @method_name, *args)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
perform_later-1.1.1 lib/resque_mailer_patch.rb
perform_later-1.1.0 lib/resque_mailer_patch.rb
perform_later-1.0.8 lib/resque_mailer_patch.rb
perform_later-1.0.6 lib/resque_mailer_patch.rb
perform_later-1.0.4 lib/resque_mailer_patch.rb
perform_later-1.0.3 lib/resque_mailer_patch.rb
perform_later-1.0.2 lib/resque_mailer_patch.rb
perform_later-1.0.1 lib/resque_mailer_patch.rb
perform_later-1.0 lib/resque_mailer_patch.rb
perform_later-0.0.4 lib/resque_mailer_patch.rb
perform_later-0.0.3 lib/resque_mailer_patch.rb
perform_later-0.0.2 lib/resque_mailer_patch.rb