Sha256: 6c474d6a2a3247df7c2c100c61825d2846388d78be41b9ea868f9824e1d9ef71

Contents?: true

Size: 536 Bytes

Versions: 3

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

module Goldiloader
  module Compatibility
    def self.pre_rails_7?
      ::ActiveRecord::VERSION::MAJOR < 7
    end

    def self.rails_6_1?
      ::ActiveRecord::VERSION::MAJOR == 6 && ::ActiveRecord::VERSION::MINOR == 1
    end

    def self.rails_6_1_or_greater?
      ::ActiveRecord::VERSION::MAJOR > 6 || rails_6_1?
    end

    def self.pre_rails_7_2?
      ::ActiveRecord::VERSION::MAJOR < 7 ||
        (::ActiveRecord::VERSION::MAJOR == 7 && ::ActiveRecord::VERSION::MINOR < 2)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
goldiloader-5.4.0 lib/goldiloader/compatibility.rb
goldiloader-5.3.1 lib/goldiloader/compatibility.rb
goldiloader-5.3.0 lib/goldiloader/compatibility.rb