Skip to content
This repository
Browse code

Adjusting 4.0 release notes to show more appropriate replacements for…

… dynamic finders [ci skip]
  • Loading branch information...
commit 84441b289bf38507f2244506e3b04927614cb5b5 1 parent 6617437
brocktimus brocktimus authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 guides/source/4_0_release_notes.md
6 guides/source/4_0_release_notes.md
Source Rendered
@@ -266,9 +266,9 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
266 266 * `find_all_by_...` can be rewritten using `where(...)`.
267 267 * `find_last_by_...` can be rewritten using `where(...).last`.
268 268 * `scoped_by_...` can be rewritten using `where(...)`.
269   - * `find_or_initialize_by_...` can be rewritten using `where(...).first_or_initialize`.
270   - * `find_or_create_by_...` can be rewritten using `find_or_create_by(...)` or `where(...).first_or_create`.
271   - * `find_or_create_by_...!` can be rewritten using `find_or_create_by!(...)` or `where(...).first_or_create!`.
  269 + * `find_or_initialize_by_...` can be rewritten using `find_or_initialize_by(...)`.
  270 + * `find_or_create_by_...` can be rewritten using `find_or_create_by(...)`.
  271 + * `find_or_create_by_...!` can be rewritten using `find_or_create_by!(...)`.
272 272
273 273 Credits
274 274 -------

0 comments on commit 84441b2

Please sign in to comment.
Something went wrong with that request. Please try again.