aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-03 03:24:28 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-03 03:24:28 +0530
commit6f5f23aaa7c4673fe923c6ad1450baaeccb40c02 (patch)
treeb1314b211da78667eb80a8b4c93f68c2acae35c7 /activerecord/lib/active_record/associations
parentc51347152abc7d8a97fd8df3eecfdbfd07673b68 (diff)
downloadrails-6f5f23aaa7c4673fe923c6ad1450baaeccb40c02.tar.gz
rails-6f5f23aaa7c4673fe923c6ad1450baaeccb40c02.tar.bz2
rails-6f5f23aaa7c4673fe923c6ad1450baaeccb40c02.zip
Add Relation#includes to be an equivalent of current finder option :include
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/association_collection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb
index cead614d0f..358db6df1d 100644
--- a/activerecord/lib/active_record/associations/association_collection.rb
+++ b/activerecord/lib/active_record/associations/association_collection.rb
@@ -21,7 +21,7 @@ module ActiveRecord
construct_sql
end
- delegate :group, :order, :limit, :joins, :where, :preload, :eager_load, :from, :lock, :readonly, :having, :to => :scoped
+ delegate :group, :order, :limit, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :to => :scoped
def select(select = nil, &block)
if block_given?