solidus_bling 3.4.2 → 3.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/solidus_bling/order.rb +1 -1
- data/lib/solidus_bling/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: 474c1d7250f5abafe50d9c1b70978e78a16ee1d4954b85ca631be3829364a4c5
|
4
|
+
data.tar.gz: 3b2ed9546da3d3f3cd8a4e558ea4f5ef8ec09488e748f94fa3a95c602b1f8765
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c0e2b194f2b37c398c8e8afc7edfd62b7ef85553ba6a0b398351c95c28e06268813b3da0c20476469ce71da3f1e372fb99a89757158f053872a916d3e9b4de7
|
7
|
+
data.tar.gz: 99c3756b1fdc64462729d68c12dc29329eb9e127fe95c1dcbaa7a30d861cfb55f0ce5a06b82b7a8e395be157130d16df25457f37310147f085942d2c9afd837f
|
@@ -180,7 +180,7 @@ module SolidusBling
|
|
180
180
|
end
|
181
181
|
|
182
182
|
def self.needs_approval?(order)
|
183
|
-
payment_method = order.payments.valid.last
|
183
|
+
payment_method = order.payments.valid.last&.payment_method
|
184
184
|
importation_rules = SolidusBling.config.importation_rules
|
185
185
|
if importation_rules
|
186
186
|
order.total >= importation_rules[:amount] && importation_rules[:payment_methods].include?(payment_method.type)
|