diff options
author | Simon Dawson <spdawson@gmail.com> | 2017-03-30 17:53:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 17:53:16 +0100 |
commit | dd18bb942914845f4af8e6997930cbf401a74288 (patch) | |
tree | 6ae53a13bff1ecc99c3b8aa9e92d978fc54233f0 /activerecord/lib/active_record/connection_adapters | |
parent | 93982de132f5e3fdcd7794d697a6566bd98da393 (diff) | |
download | rails-dd18bb942914845f4af8e6997930cbf401a74288.tar.gz rails-dd18bb942914845f4af8e6997930cbf401a74288.tar.bz2 rails-dd18bb942914845f4af8e6997930cbf401a74288.zip |
Fix example usage of ActiveRecord::Base.establish_connection
`ActiveRecord::Base.establish_connection` accepts a single symbol argument to specify a named connection; a single string argument appears to be interpreted as a connection URI
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-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 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 |