diff options
author | Noé Froidevaux <noe.froidevaux@webdoc.com> | 2011-11-13 11:03:22 +0100 |
---|---|---|
committer | Noé Froidevaux <noe.froidevaux@webdoc.com> | 2011-11-13 11:03:22 +0100 |
commit | bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6 (patch) | |
tree | cb787773d47d58c4c1423a67f11ab02ef5a07e3b /activerecord | |
parent | df300a754bf64d0c350fdc8c69408c5bd04b80a3 (diff) | |
download | rails-bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6.tar.gz rails-bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6.tar.bz2 rails-bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6.zip |
Fix pull request #3609
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index 92dfb844db..0ec0576795 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -127,7 +127,7 @@ module ActiveRecord with_connection do |conn| conn.tables.each { |table| @tables[table] = true } - @tables[name] = !@tables.key?(name) && conn.table_exists?(name) + @tables[name] = conn.table_exists?(name) if !@tables.key?(name) end @tables[name] |