torque-postgresql 0.2.15 → 0.2.16

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: 15b1a0c063511d941ef67b0aa104ef7163aa9134
4
- data.tar.gz: 93421afa177dde965f10e0458d258757956d0983
3
+ metadata.gz: b6b3476419620f407fcfbfedf49a8e14b14673c4
4
+ data.tar.gz: 086f8999ac9c845a3c794a225ee170e0af593f26
5
5
  SHA512:
6
- metadata.gz: 2224a3d965215d7ac5a7b7bb43d552728747ead30aa5095288e8b861ca6f370f86868d4ff1da33ef7f82626ad214b075f80efc45d99cbfe3845b9d97f96a6201
7
- data.tar.gz: c0eb5be0217a014cc8dcfc6a8c02fd4b4c4ed47cb62c0f03b8cf4c35cada960851b5984cfb8860adcdd76c40a716750f697772b133177196a834ced0d1d41717
6
+ metadata.gz: bc22219a6090c31d8c4192de419d49e073cfc470391f0f39c18b223f33cfd788f0d5b332e26c71f5a4d0b117c61e62d29a3741e5414e0e4c56f3d59493eef75b
7
+ data.tar.gz: 87838a9c5454a50140d8221099a9f0dce25ae9ab808a1dd7f7d1304e0b1f8b336aa48db83ea12a83d78fa4dc99b9dc20d84013da017d80153a2ca847c15588cc
@@ -39,11 +39,11 @@ module Torque
39
39
 
40
40
  # Check if the model's table depends on any inheritance
41
41
  def physically_inherited?
42
- return false unless connected?
43
-
44
42
  @physically_inherited ||= connection.schema_cache.dependencies(
45
43
  defined?(@table_name) ? @table_name : decorated_table_name,
46
44
  ).present?
45
+ rescue ActiveRecord::ConnectionNotEstablished
46
+ false
47
47
  end
48
48
 
49
49
  # Get the list of all tables directly or indirectly dependent of the
@@ -1,5 +1,5 @@
1
1
  module Torque
2
2
  module PostgreSQL
3
- VERSION = '0.2.15'
3
+ VERSION = '0.2.16'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Silva