Skip to content

Commit 883ed53

Browse files
committed
Prefer official Ruby documentation
1 parent 076cfed commit 883ed53

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

guides/source/2_3_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ A lot of folks have adopted the notion of using try() to attempt operations on o
503503

504504
### Object#tap Backport
505505

506-
`Object#tap` is an addition to [Ruby 1.9](http://www.ruby-doc.org/core-1.9/classes/Object.html#M000309) and 1.8.7 that is similar to the `returning` method that Rails has had for a while: it yields to a block, and then returns the object that was yielded. Rails now includes code to make this available under older versions of Ruby as well.
506+
`Object#tap` is an addition to [Ruby 1.9](https://docs.ruby-lang.org/en/master/Kernel.html#method-i-tap) and 1.8.7 that is similar to the `returning` method that Rails has had for a while: it yields to a block, and then returns the object that was yielded. Rails now includes code to make this available under older versions of Ruby as well.
507507

508508
### Swappable Parsers for XMLmini
509509

guides/source/4_1_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ for detailed changes.
338338
array. ([Pull Request](https://github.com/rails/rails/pull/9599))
339339

340340
* Added `session#fetch` method fetch behaves similarly to
341-
[Hash#fetch](https://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch),
341+
[Hash#fetch](https://docs.ruby-lang.org/en/master/Hash.html#method-i-fetch),
342342
with the exception that the returned value is always saved into the
343343
session. ([Pull Request](https://github.com/rails/rails/pull/12692))
344344

guides/source/upgrading_ruby_on_rails.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,9 +2151,10 @@ If your application currently depends on MultiJSON directly, you have a few opti
21512151

21522152
2. Migrate away from MultiJSON by using `obj.to_json`, and `JSON.parse(str)` instead.
21532153

2154-
WARNING: Do not simply replace `MultiJson.dump` and `MultiJson.load` with
2155-
`JSON.dump` and `JSON.load`. These JSON gem APIs are meant for serializing and
2156-
deserializing arbitrary Ruby objects and are generally [unsafe](https://ruby-doc.org/stdlib-2.2.2/libdoc/json/rdoc/JSON.html#method-i-load).
2154+
WARNING: Do not simply replace `MultiJson.load` with
2155+
`JSON.load` as that API is meant for deserializing arbitrary Ruby objects and
2156+
is generally [unsafe](https://docs.ruby-lang.org/en/master/JSON.html#method-i-load).
2157+
Prefer to use `JSON.parse`.
21572158

21582159
#### JSON gem compatibility
21592160

0 commit comments

Comments
 (0)