Skip to content

Commit 5fc58c8

Browse files
authored
Merge pull request rails#49148 from deepakmahakale/release_notes_7_1/minor_code_block_changes
[skip ci] Minor formatting fixes for code blocks
2 parents 1b0ee9f + a16f190 commit 5fc58c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guides/source/7_1_release_notes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ The collection's configuration settings affect all deprecators in the collection
249249
```ruby
250250
Rails.application.deprecators.debug = true
251251
252-
puts Rails.application.deprecators[:my_gem].debug
253-
# true
252+
Rails.application.deprecators[:my_gem].debug
253+
# => true
254254
255-
puts Rails.application.deprecators[:other_gem].debug
256-
# true
255+
Rails.application.deprecators[:other_gem].debug
256+
# => true
257257
```
258258

259259
There are scenarios where you might want to mute all deprecator warnings for a specific block of code.
@@ -433,8 +433,8 @@ Please refer to the [Changelog][action-view] for detailed changes.
433433
options for the sanitize process.
434434

435435
```ruby
436-
simple_format("<a target=\"_blank\" href=\"http://example.com\">Continue</a>", {}, { sanitize_options: { attributes: %w[target href] } })
437-
# => "<p><a target=\"_blank\" href=\"http://example.com\">Continue</a></p>"
436+
simple_format("<a target=\"_blank\" href=\"http://example.com\">Continue</a>", {}, { sanitize_options: { attributes: %w[target href] } })
437+
# => "<p><a target=\"_blank\" href=\"http://example.com\">Continue</a></p>"
438438
```
439439

440440
Action Mailer

0 commit comments

Comments
 (0)