spree_core 3.1.2 → 3.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aad45a1717f46487e95d1f1ce2e84d8b153e9e28
|
4
|
+
data.tar.gz: f45c1a7ff4a2b26a2f27dc9c52daa0ff150457eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b194e0b9e7af550b59adc6c1b650a3ef1af726d6fd974beb40987200857951311f99388665a14c652cef27c932e4945e2c1835b10bc5561a0e5b8a139920fd61
|
7
|
+
data.tar.gz: 33274a91a3b47949e274017e691ac38d205793dd571fa66ebdbca4af35a1995794ac1e89df109774cd4f64ebe23f2fec11cdebf4a3f6e45f37856a2807ed0390
|
data/app/models/spree/product.rb
CHANGED
@@ -113,7 +113,7 @@ module Spree
|
|
113
113
|
alias :options :product_option_types
|
114
114
|
|
115
115
|
self.whitelisted_ransackable_associations = %w[stores variants_including_master master variants]
|
116
|
-
self.whitelisted_ransackable_attributes = %w[description name slug]
|
116
|
+
self.whitelisted_ransackable_attributes = %w[description name slug discontinue_on]
|
117
117
|
|
118
118
|
# the master variant is not a member of the variants array
|
119
119
|
def has_variants?
|
@@ -59,8 +59,8 @@ We will print out a report of the data we are fixing now: "
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def down
|
62
|
-
execute "UPDATE
|
63
|
-
execute "UPDATE
|
62
|
+
execute "UPDATE spree_products SET deleted_at = discontinue_on WHERE deleted_at IS NULL"
|
63
|
+
execute "UPDATE spree_variants SET deleted_at = discontinue_on WHERE deleted_at IS NULL"
|
64
64
|
|
65
65
|
remove_column :spree_products, :discontinue_on
|
66
66
|
remove_column :spree_variants, :discontinue_on
|
data/lib/spree/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|