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 +4 -4
- data/app/models/spree/store_credit.rb +2 -1
- data/lib/spree/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa955a1e6248f600abcee38bf5917bfce51c569ebbe7f17ecfef6559221f1e11
|
4
|
+
data.tar.gz: 87ec654ce6fee428770068473443a25aa5d4461731613b27749009f5dd5a43e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/spree/core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|