diff options
author | Brandon Keepers <brandon@collectiveidea.com> | 2008-06-09 11:30:48 -0400 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2008-06-09 12:05:20 -0400 |
commit | e94e53f9cd70bee69759661e9771da3fe0ee9554 (patch) | |
tree | ebd08651543a0c28ce6ce0ef6d8a0bc9bf7c4430 /activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | |
parent | 8bf74c30fe276606214850ae2de76fe0efb08d94 (diff) | |
download | rails-e94e53f9cd70bee69759661e9771da3fe0ee9554.tar.gz rails-e94e53f9cd70bee69759661e9771da3fe0ee9554.tar.bz2 rails-e94e53f9cd70bee69759661e9771da3fe0ee9554.zip |
fix eager loading with dynamic finders
Diffstat (limited to 'activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb index 4fa8e9d0a8..918404eac6 100644 --- a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +++ b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb @@ -87,6 +87,7 @@ module ActiveRecord :joins => @join_sql, :readonly => false, :order => @reflection.options[:order], + :include => @reflection.options[:include], :limit => @reflection.options[:limit] } } end |