Sha256: bb605224e3e029651080809b253c55b4b5e540e463ed5e93af0fb9d016b525cb

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true
require 'active_support/concern'

module ActiveRecordCustomPreloader
  module RelationPatch
    extend ActiveSupport::Concern

    included do
      private

      def build_preloader
        ActiveRecordCustomPreloader::AssociationsPreloader.new
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_record_custom_preloader-0.3.0 lib/active_record_custom_preloader/relation_patch.rb
active_record_custom_preloader-0.2.2 lib/active_record_custom_preloader/relation_patch.rb