lib/resque_mailer/common.rb in resque_mailer-1.0.0 vs lib/resque_mailer/common.rb in resque_mailer-1.0.1
- old
+ new
@@ -17,10 +17,10 @@
self.default_queue_name = "mailer"
self.excluded_environments = [:test]
module ClassMethods
def environment_excluded?
- excluded_environment?(current_env)
+ !ActionMailer::Base.perform_deliveries || excluded_environment?(current_env)
end
def queue
::Resque::Mailer.default_queue_name
end