Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9497: dont_add_eager_loading_joins_to_pre_query.diff

File dont_add_eager_loading_joins_to_pre_query.diff, 495 bytes (added by dasil003, 10 months ago)
  • activerecord/lib/active_record/associations.rb

    old new  
    12761276          sql << " FROM #{table_name} " 
    12771277 
    12781278          if is_distinct 
    1279             sql << join_dependency.join_associations.collect(&:association_join).join 
    12801279            add_joins!(sql, options, scope) 
    12811280          end 
    12821281