Created
September 17, 2013 14:46
-
-
Save huoxito/6595331 to your computer and use it in GitHub Desktop.
Dont deliver order and shipments email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put at app/mailers/spree/order_mailer_decorator.rb | |
module Spree | |
OrderMailer.class_eval do | |
def confirm_email(order, resend = false) | |
self.message.perform_deliveries = false | |
end | |
def cancel_email(order, resend = false) | |
self.message.perform_deliveries = false | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# at app/mailers/spree/shipment_mailer_decorator.rb | |
module Spree | |
ShipmentMailer.class_eval do | |
def shipped_email(shipment, resend = false) | |
self.message.perform_deliveries = false | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment