spree_core 3.1.9 → 3.1.10

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: c837a5881a40aa559a160e002666e269310daa0c
4
- data.tar.gz: d51c8a0af0b4bf11b9cb75c0868041be108b2848
3
+ metadata.gz: b00892d10335665967c6339896226cb6b16c8e71
4
+ data.tar.gz: 8dba8567c04b333b2a0f5597aa961dba8cb7b225
5
5
  SHA512:
6
- metadata.gz: e10bf48d0f14703240ef5a896490ba8b6298d5ee040b53bc13fe36e7e0ef772f0bdb3b7a84e0b7dc138421005421e7526d3929e818dce269f117fc300aa0f10e
7
- data.tar.gz: 39b5c896edeadf4208b783e26958e1fd37e78ae0bdd7d00955b18f9bf0d8dcabf802384cfd00765c5ef2e1d45b2da6ca9c18641bba0c7ebb35db7186a65e74ed
6
+ metadata.gz: 90ccdba9b15892cf42697e827dcbb085e57d9dc3eecc88a0999b7028e2c665b4cd1c8b294dca19b078fd36622fa983cd9ac5c14cfee0692086819348e0743526
7
+ data.tar.gz: 48ed45d5883aa09e875f3952afa4be11410371257fb78618d447770e6a36a96c830fb38b0a9b504853cc088cb1b1797abaaaffb1ca096658ce0bff821d359c0b
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class Calculator < Spree::Base
3
3
  # Conditional check for backwards compatibilty since acts as paranoid was added late https://github.com/spree/spree/issues/5858
4
- if connection.table_exists?(:spree_calculators) && connection.column_exists?(:spree_calculators, :deleted_at)
4
+ if ActiveRecord::Base.connected? && connection.table_exists?(:spree_calculators) && connection.column_exists?(:spree_calculators, :deleted_at)
5
5
  acts_as_paranoid
6
6
  end
7
7
 
@@ -86,7 +86,7 @@ module Spree::Preferences
86
86
  end
87
87
 
88
88
  def should_persist?
89
- @persistence and Spree::Preference.table_exists?
89
+ @persistence && ActiveRecord::Base.connected? && Spree::Preference.table_exists?
90
90
  end
91
91
 
92
92
  end
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "3.1.9"
3
+ "3.1.10"
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.9
4
+ version: 3.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2017-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant