DmitryTsepelev/ar_lazy_preload

View on GitHub
lib/ar_lazy_preload/active_record/collection_proxy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module ArLazyPreload
  # ActiveRecord::CollectionProxy patch for getting records for preload
  module CollectionProxy
    private

    def ar_lazy_preload_records
      target
    end
  end
end