1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #35988 from sharang-d/format-documentation

Format a comment to not show up as code [ci skip]
This commit is contained in:
Ryuta Kamizono 2019-04-16 18:10:40 +09:00 committed by GitHub
commit 78255ccae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.