Flowdock
method

append_conditions

Importance_0
v2.3.8 - 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 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
Register or log in to add new notes.