aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_handling.rb
diff options
context:
space:
mode:
authorSharang Dashputre <sharang.d@gmail.com>2019-04-16 13:43:15 +0530
committerSharang Dashputre <sharang.d@gmail.com>2019-04-16 13:43:15 +0530
commitb2aa46ff40f1c37b5a447c0efca7f96f7a10ad16 (patch)
tree92e92758ba92ebf6d3090039efb4564fd8c47625 /activerecord/lib/active_record/connection_handling.rb
parent20b94af9eb9305d19a343f72f0afb18eb49e2de7 (diff)
downloadrails-b2aa46ff40f1c37b5a447c0efca7f96f7a10ad16.tar.gz
rails-b2aa46ff40f1c37b5a447c0efca7f96f7a10ad16.tar.bz2
rails-b2aa46ff40f1c37b5a447c0efca7f96f7a10ad16.zip
Format a comment to not show up as code [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/connection_handling.rb')
-rw-r--r--activerecord/lib/active_record/connection_handling.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_handling.rb b/activerecord/lib/active_record/connection_handling.rb
index 6782833c5a..040ebdb960 100644
--- a/activerecord/lib/active_record/connection_handling.rb
+++ b/activerecord/lib/active_record/connection_handling.rb
@@ -109,8 +109,8 @@ module ActiveRecord
# a role. If you would like to use a different role you can pass a hash to database:
#
# ActiveRecord::Base.connected_to(database: { readonly_slow: :animals_slow_replica }) do
- # Dog.run_a_long_query # runs a long query while connected to the +animals_slow_replica+
- # using the readonly_slow role.
+ # # runs a long query while connected to the +animals_slow_replica+ using the readonly_slow role.
+ # Dog.run_a_long_query
# end
#
# When using the database key a new connection will be established every time.