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