Skip to content

Commit 6543d3f

Browse files
committed
Add decorator for DisableCancelEmail
Similar to the confirm email, we need this to respect the 'disable_builtin_emails' value.
1 parent 1e6f16a commit 6543d3f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module SolidusTracking
2+
module Spree
3+
module Order
4+
module DisableCancelEmail
5+
def send_cancel_email
6+
super unless SolidusTracking.configuration.disable_builtin_emails
7+
end
8+
end
9+
end
10+
end
11+
end
12+
13+
Spree::Order.prepend(SolidusTracking::Spree::Order::DisableCancelEmail)

0 commit comments

Comments
 (0)