提交 04b40b3d 编写于 作者: G Godfrey Chan

Update CHANGELOG and release notes for e98f2a74

上级 07b80c12
......@@ -63,7 +63,7 @@
*Guo Xiang Tan*
* Added instance_eval version to Object#try, so you can do this:
* Added instance_eval version to Object#try and Object#try!, so you can do this:
person.try { name.first }
......@@ -71,7 +71,7 @@
person.try { |person| person.name.first }
*DHH*
*DHH*, *Ari Pollak*
* Fix the `ActiveSupport::Duration#instance_of?` method to return the right
value with the class itself since it was previously delegated to the
......
......@@ -750,6 +750,10 @@ Please refer to the [Changelog][active-support] for detailed changes.
### Notable changes
* `Object#try` and `Object#try!` can now be used without an explicit receiver.
([Commit](https://github.com/rails/rails/commit/5e51bdda59c9ba8e5faf86294e3e431bd45f1830),
[Pull Request](https://github.com/rails/rails/pull/17361))
* Introduced new configuration option `active_support.test_order` for
specifying the order test cases are executed. This option currently defaults
to `:sorted` but will be changed to `:random` in Rails 5.0.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册