aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/visitors/to_sql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index 3f61842c3f..506b33f4b6 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -171,7 +171,7 @@ module Arel
end
def table_exists? name
- schema_cache.table_exists? name
+ schema_cache.data_source_exists?(name)
end
def column_for attr