aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_record_querying.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-23 14:58:33 +1000
committerRyan Bigg <radarlistener@gmail.com>2010-12-23 14:58:33 +1000
commit226a2a90edeaaa31948c05a6633c9edbe71fb636 (patch)
tree0810960a319f1e1bda8548ccbdfb180450149789 /railties/guides/source/active_record_querying.textile
parent0644e38c4269c06968cacd60ac677011af82671c (diff)
downloadrails-226a2a90edeaaa31948c05a6633c9edbe71fb636.tar.gz
rails-226a2a90edeaaa31948c05a6633c9edbe71fb636.tar.bz2
rails-226a2a90edeaaa31948c05a6633c9edbe71fb636.zip
Query guide: class methods are still available on associations
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-rw-r--r--railties/guides/source/active_record_querying.textile6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index eb77a35739..bdc4d7c50d 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/railties/guides/source/active_record_querying.textile
@@ -801,7 +801,11 @@ class Post < ActiveRecord::Base
end
</ruby>
-Using a class method is the preferred way to accept arguments for scopes.
+Using a class method is the preferred way to accept arguments for scopes. These methods will still be accessible on the association objects:
+
+<ruby>
+category.posts.1_week_before(time)
+</ruby>
h3. Dynamic Finders