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: f10756db13ed5d6d5984d269af218f2ccc7f7d4a
4
- data.tar.gz: 85728381ad5af005d31a82260b10f11d15c6a9e6
3
+ metadata.gz: aad45a1717f46487e95d1f1ce2e84d8b153e9e28
4
+ data.tar.gz: f45c1a7ff4a2b26a2f27dc9c52daa0ff150457eb
5
5
  SHA512:
6
- metadata.gz: 2797ef84ec18533481db667260412257ff2263ac6dcca19c404e3fd6eac1f9e345ad71bd61457eab3b1992a74074203681ea94b924133bd9ff0778976ffb99c4
7
- data.tar.gz: 2142a9ccd940c194ce71c6bc4ed9be2352f406a7e9b8022985e8d8ae1c0c9030024c43dde98b34dda5c546b5ddddd7710f041b6b9672478e4f4fdfff32caf4f1
6
+ metadata.gz: b194e0b9e7af550b59adc6c1b650a3ef1af726d6fd974beb40987200857951311f99388665a14c652cef27c932e4945e2c1835b10bc5561a0e5b8a139920fd61
7
+ data.tar.gz: 33274a91a3b47949e274017e691ac38d205793dd571fa66ebdbca4af35a1995794ac1e89df109774cd4f64ebe23f2fec11cdebf4a3f6e45f37856a2807ed0390
@@ -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 `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"
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
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "3.1.2"
3
+ "3.1.3"
4
4
  end
5
5
  end
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.2
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-15 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant