From 226a2a90edeaaa31948c05a6633c9edbe71fb636 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Thu, 23 Dec 2010 14:58:33 +1000 Subject: Query guide: class methods are still available on associations --- railties/guides/source/active_record_querying.textile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'railties') 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 -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: + + +category.posts.1_week_before(time) + h3. Dynamic Finders -- cgit v1.2.3