diff options
author | Brock Trappitt <brock.trappitt@gmail.com> | 2013-08-31 20:44:55 +0800 |
---|---|---|
committer | Brock Trappitt <brock.trappitt@gmail.com> | 2013-09-01 07:42:33 +0800 |
commit | 84441b289bf38507f2244506e3b04927614cb5b5 (patch) | |
tree | 53de0411d344b7ac37ab28bd2bb59ac283aae45b /guides | |
parent | 6617437ef26c27e8be99d5d086f810c5c4aaf6a0 (diff) | |
download | rails-84441b289bf38507f2244506e3b04927614cb5b5.tar.gz rails-84441b289bf38507f2244506e3b04927614cb5b5.tar.bz2 rails-84441b289bf38507f2244506e3b04927614cb5b5.zip |
Adjusting 4.0 release notes to show more appropriate replacements for dynamic finders [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/4_0_release_notes.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/4_0_release_notes.md b/guides/source/4_0_release_notes.md index ff4d30b4c0..e070ef6031 100644 --- a/guides/source/4_0_release_notes.md +++ b/guides/source/4_0_release_notes.md @@ -266,9 +266,9 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ * `find_all_by_...` can be rewritten using `where(...)`. * `find_last_by_...` can be rewritten using `where(...).last`. * `scoped_by_...` can be rewritten using `where(...)`. - * `find_or_initialize_by_...` can be rewritten using `where(...).first_or_initialize`. - * `find_or_create_by_...` can be rewritten using `find_or_create_by(...)` or `where(...).first_or_create`. - * `find_or_create_by_...!` can be rewritten using `find_or_create_by!(...)` or `where(...).first_or_create!`. + * `find_or_initialize_by_...` can be rewritten using `find_or_initialize_by(...)`. + * `find_or_create_by_...` can be rewritten using `find_or_create_by(...)`. + * `find_or_create_by_...!` can be rewritten using `find_or_create_by!(...)`. Credits ------- |