Flowdock
method

exec_queries

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveRecord::Relation
exec_queries() 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/relation.rb, line 609
    def exec_queries
      @records = eager_loading? ? find_with_associations : @klass.find_by_sql(arel, bind_values)

      preload = preload_values
      preload +=  includes_values unless eager_loading?
      preloader = ActiveRecord::Associations::Preloader.new
      preload.each do |associations|
        preloader.preload @records, associations
      end

      @records.each { |record| record.readonly! } if readonly_value

      @loaded = true
      @records
    end
Register or log in to add new notes.