README.md in resque_mailer-2.2.4 vs README.md in resque_mailer-2.2.5

- old
+ new

@@ -1,12 +1,14 @@ # ResqueMailer +[![Gem Version](https://badge.fury.io/rb/resque_mailer.png)](http://badge.fury.io/rb/resque_mailer) +[![Build Status](https://secure.travis-ci.org/zapnap/resque_mailer.png)](http://travis-ci.org/zapnap/resque_mailer) A gem plugin which allows messages prepared by ActionMailer to be delivered asynchronously. Assumes you're using Resque (http://github.com/defunkt/resque) for your background jobs. -Note that recent (2.0+) versions of Resque::Mailer only work with Rails 3.x. +Note that recent (2.0+) versions of Resque::Mailer only work with Rails 3.x or 4.x. For a version compatible with Rails 2, specify v1.x in your Gemfile. ## Installation Install the gem: @@ -92,9 +94,12 @@ # Delivers on the 25th of December, 2013 MyMailer.reminder_email(params).deliver_at(Time.parse('2013-12-25')) # Delivers in 7 days MyMailer.reminder_email(params).deliver_in(7.days) + + # Unschedule delivery + MyMailer.reminder_email(params).unschedule_delivery ## Testing You don't want to be sending actual emails in the test environment, so you can configure the environments that should be excluded like so: