diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-10-10 01:17:23 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 01:17:23 -0300 |
commit | 7df9f4221193df14374152dc19af2a32721b3028 (patch) | |
tree | 7b54b06e532dcd8b354bd7362739695212f04ba9 /lib | |
parent | 83d301f30eb95740f20d91a448b7bc407858fc72 (diff) | |
parent | 95ff347b1743b6c7d8100ced81fb7b88a3cc2c8f (diff) | |
download | rails-7df9f4221193df14374152dc19af2a32721b3028.tar.gz rails-7df9f4221193df14374152dc19af2a32721b3028.tar.bz2 rails-7df9f4221193df14374152dc19af2a32721b3028.zip |
Merge pull request #446 from abonec/deprecated_table_exists
use #data_source_exists? if possible instead of deprecated #table_exi…
Diffstat (limited to 'lib')
-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 |