Sha256: 6a3e2e4aca85db199d015d4dd3b004892f40e5548d6cb3e3f2a0c163836d978c

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

module ArLazyPreload
  module Contexts
    # This class is responsible for automatic association preloading
    class AutoPreloadContext < BaseContext
      protected

      def association_needs_preload?(_association_name)
        true
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ar_lazy_preload-0.3.2 lib/ar_lazy_preload/contexts/auto_preload_context.rb
ar_lazy_preload-0.3.1 lib/ar_lazy_preload/contexts/auto_preload_context.rb
ar_lazy_preload-0.3.0 lib/ar_lazy_preload/contexts/auto_preload_context.rb
ar_lazy_preload-0.2.7 lib/ar_lazy_preload/contexts/auto_preload_context.rb
ar_lazy_preload-0.2.6 lib/ar_lazy_preload/contexts/auto_preload_context.rb