Sha256: 52c1b4be550b96809b03100859ca1c23e74546586b5abf39d25652ee1f5fd8c4

Contents?: true

Size: 275 Bytes

Versions: 9

Compression:

Stored size: 275 Bytes

Contents

module ActiveRecordCustomPreloader
  class PreloadWithOptions
    attr_reader :name, :options
    def initialize(name, options = {})
      @name = name
      @options = options
    end

    def loader_for(klass)
      klass.custom_loader_for(name, options)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_record_custom_preloader-2.0.0 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-1.0.0 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.5.1 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.5.0 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.4.2 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.4.1 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.4.0 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.3.0 lib/active_record_custom_preloader/preload_with_options.rb
active_record_custom_preloader-0.2.2 lib/active_record_custom_preloader/preload_with_options.rb