app/controllers/comable/orders_controller.rb in comable_frontend-0.4.0 vs app/controllers/comable/orders_controller.rb in comable_frontend-0.4.1
- old
+ new
@@ -38,10 +38,10 @@
end
private
def send_order_complete_mail
- return unless current_store.email_activate?
+ return unless current_store.can_send_mail?
if Rails.version =~ /^4.2./
Comable::OrderMailer.complete(@order).deliver_now
else
Comable::OrderMailer.complete(@order).deliver
end