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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef285b3c391c25a66ba45d2dd79500146b1fb707e47e3cc4b03953a13ce388ab
4
- data.tar.gz: 394b18402a58714c55168d446a9c67eea5a8105d02f8d46e6b73a9af7e02a315
3
+ metadata.gz: 474c1d7250f5abafe50d9c1b70978e78a16ee1d4954b85ca631be3829364a4c5
4
+ data.tar.gz: 3b2ed9546da3d3f3cd8a4e558ea4f5ef8ec09488e748f94fa3a95c602b1f8765
5
5
  SHA512:
6
- metadata.gz: 2a1e75edc57b9dfcbf561b9b2b476445b7fd5cc405bd2ae5c4f804393e2196493ff3be8e647320e30917966e6847e8fabd191f6d44adaa59e3b94ed7013997a0
7
- data.tar.gz: 101ce8e4c0a601fa679cd1c69de1276812fa2892b5f10296846d6d83fb488fb308868f042ea125136e09a0e6fc021d2a9f94d99b12f7b3231673c892625f8ac2
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.payment_method
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBling
4
- VERSION = "3.4.2"
4
+ VERSION = "3.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_bling
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas