We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e24536 commit a581a1dCopy full SHA for a581a1d
lib/rails_sql_views/connection_adapters/abstract_adapter.rb
@@ -11,10 +11,11 @@ def supports_views?
11
end
12
13
def disable_referential_integrity_with_views_excluded(&block)
14
+ self.class.send(:alias_method, :original_tables_method, :tables)
15
self.class.send(:alias_method, :tables, :base_tables)
16
disable_referential_integrity_without_views_excluded(&block)
17
ensure
- self.class.send(:alias_method, :tables, :tables_with_views_included)
18
+ self.class.send(:alias_method, :tables, :original_tables_method)
19
20
21
def supports_view_columns_definition?
0 commit comments