1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #12094 from brocktimus/master

Substitute dynamic finders in 4.0 release notes [ci skip]
This commit is contained in:
Steve Klabnik 2013-09-04 11:39:20 -07:00
commit a72fdedd40

View file

@ -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
-------