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