diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 04:36:33 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 04:42:34 +0900 |
commit | ad8275396ae6d76a6556e0f42d91e0a6dc42f4c8 (patch) | |
tree | 7da3ca01ba74a645b1d4737a6005414e01b96cf2 /guides/source/active_record_querying.md | |
parent | 545ee23f0a1e54b739b8b59cdc20e458b03c743f (diff) | |
download | rails-ad8275396ae6d76a6556e0f42d91e0a6dc42f4c8.tar.gz rails-ad8275396ae6d76a6556e0f42d91e0a6dc42f4c8.tar.bz2 rails-ad8275396ae6d76a6556e0f42d91e0a6dc42f4c8.zip |
find_all_by is deprecated in AR 4
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r-- | guides/source/active_record_querying.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 24f98f68ca..618dd2652b 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1228,7 +1228,7 @@ Client.unscoped { Dynamic Finders --------------- -For every field (also known as an attribute) you define in your table, Active Record provides a finder method. If you have a field called `first_name` on your `Client` model for example, you get `find_by_first_name` and `find_all_by_first_name` for free from Active Record. If you have a `locked` field on the `Client` model, you also get `find_by_locked` and `find_all_by_locked` methods. +For every field (also known as an attribute) you define in your table, Active Record provides a finder method. If you have a field called `first_name` on your `Client` model for example, you get `find_by_first_name` for free from Active Record. If you have a `locked` field on the `Client` model, you also get `find_by_locked` and methods. You can also use `find_last_by_*` methods which will find the last record matching your argument. |