kithe 2.7.0 → 2.7.1

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
  SHA256:
3
- metadata.gz: 9f8937387847f42ce3ae1327cd25ac029e38be0a5b821ef0dc45aeeef04d6de7
4
- data.tar.gz: 1417b0de61a7a78e1f9ad8b162d766e667b52f89d18b87878390ffbd05b8011b
3
+ metadata.gz: 3458905d56f4bcfc065e070be88609a69fb60d0367ef3c4ddbcd1cd6823019ea
4
+ data.tar.gz: 20fcfa357363b7d94ab8debd0621723275defbdbafcea2dbeae3001ce5a37f17
5
5
  SHA512:
6
- metadata.gz: cfd282cf508978df374b23f51ee90f3389b5f5a061ad15a03bb12555776232c0bc8f9f825cc9ea9854dac0954528829d0eccc430aa76fb9eb30694c16f83fc84
7
- data.tar.gz: 7d6833edbdb186b547d5d4f57e38fa39224ad797cbfd760c309d9a23bdb3ad8488b0c19aeb7cfe6f799ae946342f9e38172055df231e2a2272c992f6dc376333
6
+ metadata.gz: e212b3f5d085a84ff6fff0299fefc931951f2ed5a27a1f4ea2923d856164b9645cb396549914f94c9eba7bf1731e5467b67b81a42589e347d376091db381cd93
7
+ data.tar.gz: a4aedda158f61fd9ade8bc1b2c0856572ab643ce0d3c9ba267a844c98bb20bb93b6b7b7511ebbc01a029240b75c45d8e0725bb13dd769e5b3ffc5002f585b2aa
data/lib/kithe/engine.rb CHANGED
@@ -25,9 +25,9 @@ module Kithe
25
25
  # Descendants wont' be pre-loaded during initialization, but this is the best
26
26
  # we can do.
27
27
  initializer ("kithe.preload_single_table_inheritance") do
28
- unless false && Rails.configuration.cache_classes && Rails.configuration.eager_load
28
+ unless Rails.configuration.cache_classes && Rails.configuration.eager_load
29
29
  Rails.configuration.to_prepare do
30
- Kithe::Model.preload_sti unless Kithe::Model.preloaded
30
+ Kithe::Model.preload_sti if Kithe::Model.respond_to?(:preloaded) && !Kithe::Model.preloaded
31
31
  rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid => e
32
32
  Rails.logger.debug("Could not pre-load Kithe::Models Single-Table Inheritance descendents: #{e.inspect}")
33
33
  end
data/lib/kithe/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kithe
2
- VERSION = '2.7.0'
2
+ VERSION = '2.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kithe
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails