aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-16 18:10:40 +0900
committerGitHub <noreply@github.com>2019-04-16 18:10:40 +0900
commit78255ccae84bf72cbc7a62bd26123c2eae27851c (patch)
tree92e92758ba92ebf6d3090039efb4564fd8c47625 /activerecord
parent20b94af9eb9305d19a343f72f0afb18eb49e2de7 (diff)
parentb2aa46ff40f1c37b5a447c0efca7f96f7a10ad16 (diff)
downloadrails-78255ccae84bf72cbc7a62bd26123c2eae27851c.tar.gz
rails-78255ccae84bf72cbc7a62bd26123c2eae27851c.tar.bz2
rails-78255ccae84bf72cbc7a62bd26123c2eae27851c.zip
Merge pull request #35988 from sharang-d/format-documentation
Format a comment to not show up as code [ci skip]
Diffstat (limited to 'activerecord')
-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.