Sha256: 228287f4284afe687a725dd47996d7ef93cf3f898194aff1444b292cfc15dadd
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module N1Loader module ArLazyPreload # A patch to {N1Loader::LoaderCollection} to setup lazy context lazily. module LoaderCollectionPatch attr_accessor :context_setup def with(*args) result = super result.context_setup = context_setup if context_setup && result.context_setup.nil? result end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
n1_loader-1.3.0 | lib/n1_loader/ar_lazy_preload/loader_collection_patch.rb |
n1_loader-1.2.0 | lib/n1_loader/ar_lazy_preload/loader_collection_patch.rb |