aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorNoé Froidevaux <noe.froidevaux@webdoc.com>2011-11-13 11:03:22 +0100
committerNoé Froidevaux <noe.froidevaux@webdoc.com>2011-11-13 11:03:22 +0100
commitbf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6 (patch)
treecb787773d47d58c4c1423a67f11ab02ef5a07e3b /activerecord/lib/active_record/connection_adapters
parentdf300a754bf64d0c350fdc8c69408c5bd04b80a3 (diff)
downloadrails-bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6.tar.gz
rails-bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6.tar.bz2
rails-bf6efa8d9cd0f7ce2eea7c1a0ff51f1d165cafc6.zip
Fix pull request #3609
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb2
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]