diff options
author | Alexander Baronec <abonec@gmail.com> | 2016-08-31 18:25:03 +0300 |
---|---|---|
committer | Alexander Baronec <abonec@gmail.com> | 2016-10-08 08:50:42 +0300 |
commit | 95ff347b1743b6c7d8100ced81fb7b88a3cc2c8f (patch) | |
tree | 7b54b06e532dcd8b354bd7362739695212f04ba9 /lib/arel | |
parent | 83d301f30eb95740f20d91a448b7bc407858fc72 (diff) | |
download | rails-95ff347b1743b6c7d8100ced81fb7b88a3cc2c8f.tar.gz rails-95ff347b1743b6c7d8100ced81fb7b88a3cc2c8f.tar.bz2 rails-95ff347b1743b6c7d8100ced81fb7b88a3cc2c8f.zip |
use #data_source_exists? instead of deprecated #table_exists?
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
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 |