Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Clean up whitespace. #6

Closed
wants to merge 1 commit into from

1 participant

@eclubb

No description provided.

@eclubb eclubb closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 14, 2012
  1. @eclubb

    Clean up whitespace.

    eclubb authored
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 17 deletions.
  1. +13 −13 readme.md
  2. +4 −4 resque_mail_queue.gemspec
View
26 readme.md
@@ -1,40 +1,40 @@
# Resque Mail Queue
-This gem makes it very easy to send emails asynchronously with [Resque](http://github.com/defunkt/resque).
+This gem makes it very easy to send emails asynchronously with [Resque](http://github.com/defunkt/resque).
-## Usage
+## Usage
Add the gem to your gemfile:
- gem 'resque_mail_queue'
-
-Then anytime you want to push an email asynchronously add _enqueue_ before the mailer method.
+ gem 'resque_mail_queue'
+
+Then anytime you want to push an email asynchronously add _enqueue_ before the mailer method.
UserMailer.enqueue.welcome_email(1)
## Notes
-1. As with most things Resque, your parameters should be simple objects (ids, strings, etc). Or put another way, do not pass your models directly.
+1. As with most things Resque, your parameters should be simple objects (ids, strings, etc). Or put another way, do not pass your models directly.
1. You do not have to call deliver
-1. By default, all messages will be placed on a queue called "mail". You can change this by adding a class method called queue on any mailer.
+1. By default, all messages will be placed on a queue called "mail". You can change this by adding a class method called queue on any mailer.
class MyMailer < ActionMailer::Base
-
+
def self.queue
:high_priority
end
-
+
end
-
-
+
+
## Why use this instead of ResqueMailer
I initially started using [ResqueMailer](https://github.com/zapnap/resque_mailer) and it worked well. However, I preferred being more explicit (and simple) on when emails were sent asynchronously (by calling enqueue).
-More clearly, if ResqueMailer works for you and you like it, stick with it.
+More clearly, if ResqueMailer works for you and you like it, stick with it.
-## License
+## License
Provided under the Do Whatever You Want With This Code License.
View
8 resque_mail_queue.gemspec
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency 'actionmailer', '>= 3.1'
-
- s.add_dependency 'resque', '>= 1.1.0'
- s.add_development_dependency 'resque_spec'
+ s.add_dependency 'actionmailer', '>= 3.1'
+
+ s.add_dependency 'resque', '>= 1.1.0'
+ s.add_development_dependency 'resque_spec'
end
Something went wrong with that request. Please try again.