effective_orders 4.5.6 → 4.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/effective/order.rb +7 -3
- data/lib/effective_orders/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7af8313072b9cd7b4ab2fdac74aa083b29a0c8dbcc9e23b215aa96a771478884
|
4
|
+
data.tar.gz: 9a472569b70bcc8d2b2aec76e5922bc96f946df57cebd1f6a3dba055f85a1284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c82f040bd36057c9919a11378f6fd2c0fc4fb552c06237f6d27f4f96f20f38c43ffb5e71b2cb61c03da91f47162ff62c15458cc486e2eb6523f15941915375c
|
7
|
+
data.tar.gz: 8095e12ec205f3d259290058ec9650a8e8b532c2ff1dec4220354baeecf374cc875fcc7b6797d171f8dd3b3b4d32da6bbf8cb618fc0a08df557023df4beaf4ea
|
@@ -382,11 +382,11 @@ module Effective
|
|
382
382
|
|
383
383
|
raise "Failed to purchase order: #{error || errors.full_messages.to_sentence}" unless error.nil?
|
384
384
|
|
385
|
+
run_purchasable_callbacks(:after_purchase)
|
386
|
+
|
385
387
|
send_refund_notification! if email && refund?
|
386
388
|
send_order_receipts! if email
|
387
389
|
|
388
|
-
run_purchasable_callbacks(:after_purchase)
|
389
|
-
|
390
390
|
true
|
391
391
|
end
|
392
392
|
|
@@ -538,7 +538,11 @@ module Effective
|
|
538
538
|
end
|
539
539
|
|
540
540
|
def send_email(email, *mailer_args)
|
541
|
-
|
541
|
+
begin
|
542
|
+
Effective::OrdersMailer.public_send(email, *mailer_args).public_send(EffectiveOrders.mailer[:deliver_method])
|
543
|
+
rescue => e
|
544
|
+
raise if Rails.env.development? || Rails.env.test?
|
545
|
+
end
|
542
546
|
end
|
543
547
|
|
544
548
|
def truthy?(value)
|