Sha256: b4aee11d51843661a595d4862d78897e47c32b1f1c919041a0e943bdbe62ab02

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require 'active_support/version'
require 'active_record/version'

module Delayed
  module JobGroups
    module Compatibility
      ACTIVE_RECORD_VERSION = ::Gem::Version.new(::ActiveRecord::VERSION::STRING).release
      VERSION_7_1 = ::Gem::Version.new('7.1.0')

      def self.rails_7_1_or_greater?
        ACTIVE_RECORD_VERSION >= VERSION_7_1
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_groups_plugin-0.12.0 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.11.0 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.10.1 lib/delayed/job_groups/compatibility.rb