Flowdock
method

append_conditions

Importance_0
v3.0.5 - Show latest stable - 0 notes - Class: ActiveRecord::AssociationPreload::ClassMethods
append_conditions(reflection, preload_options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/association_preload.rb, line 407
      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
Register or log in to add new notes.