Sha256: 9d11b571dcf70753c4f25650b8bd59420f926a6180c4f847252b2b81e1c7be8e

Contents?: true

Size: 801 Bytes

Versions: 9

Compression:

Stored size: 801 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"

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
n1_loader-1.5.1 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.5.0 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.4.4 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.4.3 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.4.2 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.4.1 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.4.0 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.3.0 lib/n1_loader/ar_lazy_preload.rb
n1_loader-1.2.0 lib/n1_loader/ar_lazy_preload.rb