method
append_conditions
append_conditions(reflection, preload_options)
private
Hide source
# File activerecord/lib/active_record/association_preload.rb, line 408 def append_conditions(reflection, preload_options) sql = "" sql << " AND (#{process_conditions_for_preload(reflection.options[:conditions], reflection.klass)})" if reflection.options[:conditions] sql << " AND (#{process_conditions_for_preload(preload_options[:conditions])})" if preload_options[:conditions] sql end