aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrock Trappitt <brock.trappitt@gmail.com>2013-08-31 20:44:55 +0800
committerBrock Trappitt <brock.trappitt@gmail.com>2013-09-01 07:42:33 +0800
commit84441b289bf38507f2244506e3b04927614cb5b5 (patch)
tree53de0411d344b7ac37ab28bd2bb59ac283aae45b
parent6617437ef26c27e8be99d5d086f810c5c4aaf6a0 (diff)
downloadrails-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]
-rw-r--r--guides/source/4_0_release_notes.md6
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
-------