Browse files

Query guide: class methods are still available on associations

  • Loading branch information...
1 parent 0644e38 commit 226a2a90edeaaa31948c05a6633c9edbe71fb636 @radar radar committed Dec 23, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 railties/guides/source/active_record_querying.textile
View
6 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

0 comments on commit 226a2a9

Please sign in to comment.