method
append_conditions
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::AssociationPreload::ClassMethods
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