Navigation Menu

Skip to content

Commit

Permalink
respect ActionMailer::Base.perform_deliveries
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Dec 21, 2010
1 parent 0f2df8b commit 288b628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque_mailer/common.rb
Expand Up @@ -19,7 +19,7 @@ def included(base)

module ClassMethods
def environment_excluded?
excluded_environment?(current_env)
!ActionMailer::Base.perform_deliveries || excluded_environment?(current_env)
end

def queue
Expand Down

0 comments on commit 288b628

Please sign in to comment.