aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_querying.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-04-30 17:59:12 +0200
committerYves Senn <yves.senn@gmail.com>2013-04-30 17:59:12 +0200
commitd2fe72345aeea2a0874dfe5c665368b9fd543bcb (patch)
tree7eb7c9399107c7fa1ba53443b5f664fb537b3353 /guides/source/active_record_querying.md
parent887225e69b6cdd27f00cf043c4ac918ca5e18cbf (diff)
downloadrails-d2fe72345aeea2a0874dfe5c665368b9fd543bcb.tar.gz
rails-d2fe72345aeea2a0874dfe5c665368b9fd543bcb.tar.bz2
rails-d2fe72345aeea2a0874dfe5c665368b9fd543bcb.zip
it's Active Record not ActiveRecord
/cc @fxn
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r--guides/source/active_record_querying.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index e55810bebb..80eec428c1 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -1301,7 +1301,10 @@ Client.unscoped {
Dynamic Finders
---------------
-NOTE: Dynamic finders have been deprecated in Rails 4.0 and will be removed in Rails 4.1. The best practice is to use ActiveRecord scopes instead. You can find the deprecation gem at https://github.com/rails/activerecord-deprecated_finders
+NOTE: Dynamic finders have been deprecated in Rails 4.0 and will be
+removed in Rails 4.1. The best practice is to use Active Record scopes
+instead. You can find the deprecation gem at
+https://github.com/rails/activerecord-deprecated_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` for free from Active Record. If you have a `locked` field on the `Client` model, you also get `find_by_locked` and methods.