solidus_core 2.8.3 → 2.8.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_core might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42c525de0b0430c5fe1eb14d2d3261a4f3252372a060d1fb4f7a4d0b0ae47e1a
4
- data.tar.gz: 9a0cf5c511c9e74d86178572a505f5bc7228a5c6e1596aca217356525984be8d
3
+ metadata.gz: fa955a1e6248f600abcee38bf5917bfce51c569ebbe7f17ecfef6559221f1e11
4
+ data.tar.gz: 87ec654ce6fee428770068473443a25aa5d4461731613b27749009f5dd5a43e9
5
5
  SHA512:
6
- metadata.gz: aacc059f964c7a0f57c562f2e81a44c6bff43f7ed28dd89f07e1fc37f9ef401f64ca944d8f4dcec7fe7963cf0ce85b106d95fdaf500377c99f8f0e6b8f1898d5
7
- data.tar.gz: 2c0ced8e5424e5130e43c7b4e710f9d02080805fe7198f74ee0c37fb50ebb70378752823663f80b6d59312166393ad780bde83f9a24f065a20efe12b9e481314
6
+ metadata.gz: 48517b6b2065ed1ced1ff2fcd8848c4e0466450ab54d48709284e13b9d1bdc07fb39c6a7421e8dfadc4d3014576d8f3f9c3951794fee4e9e7a9e71f9398e475f
7
+ data.tar.gz: 52fa902134e553ac62ac524df960489cbf79886fe69aa2bf44fc343576813cdf8562729043e7eb2baf1e7618566b14695fdfe200bcc105e85925fa08ab93c8b8
@@ -39,7 +39,7 @@ class Spree::StoreCredit < Spree::PaymentSource
39
39
  before_validation :associate_credit_type
40
40
  before_validation :validate_category_unchanged, on: :update
41
41
  before_destroy :validate_no_amount_used
42
- validate :validate_no_amount_used, if: :discarded?
42
+ before_discard :validate_no_amount_used
43
43
 
44
44
  attr_accessor :action, :action_amount, :action_originator, :action_authorization_code, :store_credit_reason
45
45
 
@@ -268,6 +268,7 @@ class Spree::StoreCredit < Spree::PaymentSource
268
268
  def validate_no_amount_used
269
269
  if amount_used > 0
270
270
  errors.add(:amount_used, 'is greater than zero. Can not delete store credit')
271
+ throw :abort
271
272
  end
272
273
  end
273
274
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spree
4
4
  def self.solidus_version
5
- "2.8.3"
5
+ "2.8.4"
6
6
  end
7
7
 
8
8
  def self.solidus_gem_version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.3
4
+ version: 2.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer