diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-12-26 19:37:35 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-12-26 19:38:04 +0000 |
commit | b0498372a10bda006350af42708a5588ab28ffcb (patch) | |
tree | 3dbbd2186cf61fa253d9302dd751c2f88b2636dc /activerecord/lib/active_record/associations/association_collection.rb | |
parent | 0c272471fe815c121a83d959468b2f1b6f8aaba8 (diff) | |
download | rails-b0498372a10bda006350af42708a5588ab28ffcb.tar.gz rails-b0498372a10bda006350af42708a5588ab28ffcb.tar.bz2 rails-b0498372a10bda006350af42708a5588ab28ffcb.zip |
Add a HasAssociation module for common code for has_* associations
Diffstat (limited to 'activerecord/lib/active_record/associations/association_collection.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index c9f9c925b0..86cc17394c 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -18,6 +18,8 @@ module ActiveRecord # If you need to work on all current children, new and existing records, # +load_target+ and the +loaded+ flag are your friends. class AssociationCollection < AssociationProxy #:nodoc: + include HasAssociation + delegate :group, :order, :limit, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :to => :scoped def select(select = nil) |