Skip to content

Commit 384c0d4

Browse files
Fix list item indentation [ci-skip]
This fixes the formatting of list items that include code snippets and multiple paragraphs.
1 parent c008a36 commit 384c0d4

File tree

7 files changed

+271
-250
lines changed

7 files changed

+271
-250
lines changed

guides/source/4_0_release_notes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/4-0-stable/a
184184
* `String#to_date` now raises `ArgumentError: invalid date` instead of `NoMethodError: undefined method 'div' for nil:NilClass`
185185
when given an invalid date. It is now the same as `Date.parse`, and it accepts more invalid dates than 3.x, such as:
186186

187-
```ruby
188-
# ActiveSupport 3.x
189-
"asdf".to_date # => NoMethodError: undefined method `div' for nil:NilClass
190-
"333".to_date # => NoMethodError: undefined method `div' for nil:NilClass
191-
192-
# ActiveSupport 4
193-
"asdf".to_date # => ArgumentError: invalid date
194-
"333".to_date # => Fri, 29 Nov 2013
195-
```
187+
```ruby
188+
# ActiveSupport 3.x
189+
"asdf".to_date # => NoMethodError: undefined method `div' for nil:NilClass
190+
"333".to_date # => NoMethodError: undefined method `div' for nil:NilClass
191+
192+
# ActiveSupport 4
193+
"asdf".to_date # => ArgumentError: invalid date
194+
"333".to_date # => Fri, 29 Nov 2013
195+
```
196196

197197
### Deprecations
198198

guides/source/4_2_release_notes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ Caching is not used in the following scenarios:
109109
- The model uses single table inheritance
110110
- `find` with a list of ids, e.g.:
111111

112-
```ruby
113-
# not cached
114-
Post.find(1, 2, 3)
115-
Post.find([1,2])
116-
```
112+
```ruby
113+
# not cached
114+
Post.find(1, 2, 3)
115+
Post.find([1,2])
116+
```
117117

118118
- `find_by` with SQL fragments:
119119

120-
```ruby
121-
Post.find_by('published_at < ?', 2.weeks.ago)
122-
```
120+
```ruby
121+
Post.find_by('published_at < ?', 2.weeks.ago)
122+
```
123123

124124
### Web Console
125125

guides/source/6_1_release_notes.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,20 +279,20 @@ Please refer to the [Changelog][active-record] for detailed changes.
279279

280280
* `where.not` now generates NAND predicates instead of NOR.
281281

282-
Before:
282+
Before:
283283

284-
User.where.not(name: "Jon", role: "admin")
285-
# SELECT * FROM users WHERE name != 'Jon' AND role != 'admin'
284+
User.where.not(name: "Jon", role: "admin")
285+
# SELECT * FROM users WHERE name != 'Jon' AND role != 'admin'
286286

287-
After:
287+
After:
288288

289-
User.where.not(name: "Jon", role: "admin")
290-
# SELECT * FROM users WHERE NOT (name == 'Jon' AND role == 'admin')
289+
User.where.not(name: "Jon", role: "admin")
290+
# SELECT * FROM users WHERE NOT (name == 'Jon' AND role == 'admin')
291291

292-
* To use the new per-database connection handling applications must change
293-
`legacy_connection_handling` to false and remove deprecated accessors on
294-
`connection_handlers`. Public methods for `connects_to` and `connected_to`
295-
require no changes.
292+
* To use the new per-database connection handling applications must change
293+
`legacy_connection_handling` to false and remove deprecated accessors on
294+
`connection_handlers`. Public methods for `connects_to` and `connected_to`
295+
require no changes.
296296

297297
Active Storage
298298
--------------

guides/source/asset_pipeline.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -789,23 +789,23 @@ $ RAILS_ENV=production rails assets:precompile
789789

790790
Note the following caveats:
791791

792-
* If precompiled assets are available, they will be served — even if they no
793-
longer match the original (uncompiled) assets, _even on the development
794-
server._
795-
796-
To ensure that the development server always compiles assets on-the-fly (and
797-
thus always reflects the most recent state of the code), the development
798-
environment _must be configured to keep precompiled assets in a different
799-
location than production does._ Otherwise, any assets precompiled for use in
800-
production will clobber requests for them in development (_i.e.,_ subsequent
801-
changes you make to assets will not be reflected in the browser).
802-
803-
You can do this by adding the following line to
804-
`config/environments/development.rb`:
805-
806-
```ruby
807-
config.assets.prefix = "/dev-assets"
808-
```
792+
* If precompiled assets are available, they will be served — even if they no
793+
longer match the original (uncompiled) assets, _even on the development
794+
server._
795+
796+
To ensure that the development server always compiles assets on-the-fly (and
797+
thus always reflects the most recent state of the code), the development
798+
environment _must be configured to keep precompiled assets in a different
799+
location than production does._ Otherwise, any assets precompiled for use in
800+
production will clobber requests for them in development (_i.e.,_ subsequent
801+
changes you make to assets will not be reflected in the browser).
802+
803+
You can do this by adding the following line to
804+
`config/environments/development.rb`:
805+
806+
```ruby
807+
config.assets.prefix = "/dev-assets"
808+
```
809809
* The asset precompile task in your deployment tool (_e.g.,_ Capistrano) should
810810
be disabled.
811811
* Any necessary compressors or minifiers must be available on your development

0 commit comments

Comments
 (0)