Sha256: 5342148a0130f47fcbb8adfe34094825b7a78236397240926d04792fa2c8e0a6

Contents?: true

Size: 858 Bytes

Versions: 3

Compression:

Stored size: 858 Bytes

Contents

# frozen_string_literal: true

# Load core library
require_relative "active_record"

# Load integration dependency
require "rails"
require "ar_lazy_preload"

# Library integration
require_relative "ar_lazy_preload/loadable"
require_relative "ar_lazy_preload/context_adapter"
require_relative "ar_lazy_preload/associated_context_builder"
require_relative "ar_lazy_preload/loader_collection_patch"
require_relative "ar_lazy_preload/preloader_patch"
require_relative "ar_lazy_preload/loader_patch"
require_relative "ar_lazy_preload/loader"
require_relative "ar_lazy_preload/context"

N1Loader::Loadable.prepend(N1Loader::ArLazyPreload::Loadable)
N1Loader::Preloader.prepend(N1Loader::ArLazyPreload::PreloaderPatch)
N1Loader::Loader.prepend(N1Loader::ArLazyPreload::LoaderPatch)
N1Loader::LoaderCollection.prepend(N1Loader::ArLazyPreload::LoaderCollectionPatch)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
n1_loader-1.7.4 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.7.3 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.7.2 lib/n1_loader/ar_lazy_preload.rb