Merge pull request #49148 from deepakmahakale/release_notes_7_1/minor_code_block_changes
[skip ci] Minor formatting fixes for code blocks
This commit is contained in:
commit
5fc58c86d2
@ -249,11 +249,11 @@ The collection's configuration settings affect all deprecators in the collection
|
||||
```ruby
|
||||
Rails.application.deprecators.debug = true
|
||||
|
||||
puts Rails.application.deprecators[:my_gem].debug
|
||||
# true
|
||||
Rails.application.deprecators[:my_gem].debug
|
||||
# => true
|
||||
|
||||
puts Rails.application.deprecators[:other_gem].debug
|
||||
# true
|
||||
Rails.application.deprecators[:other_gem].debug
|
||||
# => true
|
||||
```
|
||||
|
||||
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.
|
||||
options for the sanitize process.
|
||||
|
||||
```ruby
|
||||
simple_format("<a target=\"_blank\" href=\"http://example.com\">Continue</a>", {}, { sanitize_options: { attributes: %w[target href] } })
|
||||
# => "<p><a target=\"_blank\" href=\"http://example.com\">Continue</a></p>"
|
||||
simple_format("<a target=\"_blank\" href=\"http://example.com\">Continue</a>", {}, { sanitize_options: { attributes: %w[target href] } })
|
||||
# => "<p><a target=\"_blank\" href=\"http://example.com\">Continue</a></p>"
|
||||
```
|
||||
|
||||
Action Mailer
|
||||
|
Loading…
Reference in New Issue
Block a user