seuros/actionmailer-deliver_later — pull request #4 by cristianbica (2014-05-21 20:07:59+00:00)
Title: Implemented new API

As talked in #3

API:

```ruby
class UserMailer < ActionMailer::Base
include ActionMailer::DeliverLater
def thanks(*args)
#...
end
end

UserMailer.thanks(user).deliver_later
UserMailer.thanks(user).deliver_later!
UserMailer.thanks(user).deliver_later in: 5.minutes
UserMailer.thanks(user).deliver_later! in: 5.minutes
UserMailer.thanks(user).deliver_later at: 10.hours.from_now
UserMailer.thanks(user).deliver_later! at: 10.hours.from_now

# "old" ActionMailer delivery methods will work also
UserMailer.thanks(user).deliver #will send the email

# you can still get the Mail::Message to inspect it in console/debugger
UserMailer.thanks(user) #this is Delegator wrapped around a Mail::Message

```