aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_querying.textile
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-03-30 13:07:00 +0100
committerJon Leighton <j@jonathanleighton.com>2012-03-30 13:07:00 +0100
commit96b819210eb876db54a5ab4b99e6f789d0c98de3 (patch)
tree6e1ad823c60870df6c307e395ba32dfc7f808270 /guides/source/active_record_querying.textile
parent13b3c77e393b8fb02588f39e6bfa10c832e251ff (diff)
downloadrails-96b819210eb876db54a5ab4b99e6f789d0c98de3.tar.gz
rails-96b819210eb876db54a5ab4b99e6f789d0c98de3.tar.bz2
rails-96b819210eb876db54a5ab4b99e6f789d0c98de3.zip
remove irrelevant references to ARel
Diffstat (limited to 'guides/source/active_record_querying.textile')
-rw-r--r--guides/source/active_record_querying.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.textile b/guides/source/active_record_querying.textile
index 8471d67def..33b4a35edd 100644
--- a/guides/source/active_record_querying.textile
+++ b/guides/source/active_record_querying.textile
@@ -979,9 +979,9 @@ If, in the case of this +includes+ query, there were no comments for any posts,
h3. Scopes
-Scoping allows you to specify commonly-used ARel queries which can be referenced as method calls on the association objects or models. With these scopes, you can use every method previously covered such as +where+, +joins+ and +includes+. All scope methods will return an +ActiveRecord::Relation+ object which will allow for further methods (such as other scopes) to be called on it.
+Scoping allows you to specify commonly-used queries which can be referenced as method calls on the association objects or models. With these scopes, you can use every method previously covered such as +where+, +joins+ and +includes+. All scope methods will return an +ActiveRecord::Relation+ object which will allow for further methods (such as other scopes) to be called on it.
-To define a simple scope, we use the +scope+ method inside the class, passing the ARel query that we'd like run when this scope is called:
+To define a simple scope, we use the +scope+ method inside the class, passing the query that we'd like run when this scope is called:
<ruby>
class Post < ActiveRecord::Base