Permalink
Browse files

Adjusting 4.0 release notes to show more appropriate replacements for…

… dynamic finders [ci skip]
  • Loading branch information...
1 parent 6617437 commit 84441b289bf38507f2244506e3b04927614cb5b5 @brocktimus brocktimus committed Aug 31, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 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
-------

0 comments on commit 84441b2

Please sign in to comment.