Sha256: 9e951238782273349751c75ce22a01186498bcc59464cf351e9961a1a4c8e0de

Contents?: true

Size: 240 Bytes

Versions: 5

Compression:

Stored size: 240 Bytes

Contents

# frozen_string_literal: true

N1Loader::LoaderCollection.define_method :preloaded_records do
  raise N1Loader::ActiveRecord::InvalidPreloading, "Cannot preload loader with arguments" if loader_class.arguments

  with.preloaded_records
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
n1_loader-1.4.4 lib/n1_loader/active_record/loader_collection.rb
n1_loader-1.4.3 lib/n1_loader/active_record/loader_collection.rb
n1_loader-1.4.2 lib/n1_loader/active_record/loader_collection.rb
n1_loader-1.4.1 lib/n1_loader/active_record/loader_collection.rb
n1_loader-1.4.0 lib/n1_loader/active_record/loader_collection.rb