aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2017-03-30 15:02:22 -0500
committerGitHub <noreply@github.com>2017-03-30 15:02:22 -0500
commit7ccb15728be9ae230ca536d6edc190850a91c17f (patch)
tree9d93dd0aea08cc1ee278d80d6a907a945b8842b5
parentb68aae003ad7456f6c365fa86d212fd1e5a46ff7 (diff)
parentdd18bb942914845f4af8e6997930cbf401a74288 (diff)
downloadrails-7ccb15728be9ae230ca536d6edc190850a91c17f.tar.gz
rails-7ccb15728be9ae230ca536d6edc190850a91c17f.tar.bz2
rails-7ccb15728be9ae230ca536d6edc190850a91c17f.zip
Merge pull request #28616 from spdawson/patch-4
Fix example usage of ActiveRecord::Base.establish_connection [ci skip]
-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 3f2e86a98d..53dbbd8c21 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
@@ -825,7 +825,7 @@ module ActiveRecord
# end
#
# class Book < ActiveRecord::Base
- # establish_connection "library_db"
+ # establish_connection :library_db
# end
#
# class ScaryBook < Book