We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8bb59b commit 970e831Copy full SHA for 970e831
lib/torque/postgresql/inheritance.rb
@@ -39,11 +39,11 @@ def inheritance_merged_attributes
39
40
# Check if the model's table depends on any inheritance
41
def physically_inherited?
42
- return false unless connected?
43
-
44
@physically_inherited ||= connection.schema_cache.dependencies(
45
defined?(@table_name) ? @table_name : decorated_table_name,
46
).present?
+ rescue ActiveRecord::ConnectionNotEstablished
+ false
47
end
48
49
# Get the list of all tables directly or indirectly dependent of the
lib/torque/postgresql/version.rb
@@ -1,5 +1,5 @@
1
module Torque
2
module PostgreSQL
3
- VERSION = '0.2.15'
+ VERSION = '0.2.16'
4
5
0 commit comments