Sha256: 47c0ace5c0780877a936e8e1aa27494c5370efa456f3888ecfaeba9b627449d5

Contents?: true

Size: 1009 Bytes

Versions: 6

Compression:

Stored size: 1009 Bytes

Contents

require 'active_support/concern'
require 'active_support/core_ext/module/delegation'
require 'active_support/notifications'
require 'active_record'

require "jit_preloader/version"
require 'jit_preloader/active_record/base'
require 'jit_preloader/active_record/relation'
require 'jit_preloader/active_record/associations/collection_association'
require 'jit_preloader/active_record/associations/singular_association'
if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new("5.2.2")
  require 'jit_preloader/active_record/associations/preloader/collection_association'
  require 'jit_preloader/active_record/associations/preloader/singular_association'
else
  require 'jit_preloader/active_record/associations/preloader/association'
end
require 'jit_preloader/preloader'

module JitPreloader

  def self.globally_enabled=(value)
    @enabled = value
  end

  def self.globally_enabled?
    if @enabled && @enabled.respond_to?(:call)
      @enabled.call
    else
      @enabled
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jit_preloader-0.2.5 lib/jit_preloader.rb
jit_preloader-0.2.4 lib/jit_preloader.rb
jit_preloader-0.2.3 lib/jit_preloader.rb
jit_preloader-0.2.2 lib/jit_preloader.rb
jit_preloader-0.2.1 lib/jit_preloader.rb
jit_preloader-0.2.0 lib/jit_preloader.rb