Sha256: 75ec1c86bebf746ec881e826a98125534ae5962658eecf7039b3c9ec37a5043b

Contents?: true

Size: 338 Bytes

Versions: 2

Compression:

Stored size: 338 Bytes

Contents

# encoding: UTF-8

module Goldiloader
  module Compatibility
    ACTIVE_RECORD_VERSION = ::Gem::Version.new(::ActiveRecord::VERSION::STRING)

    def self.rails_4?
      ::ActiveRecord::VERSION::MAJOR == 4
    end

    def self.rails_5_0?
      ::ActiveRecord::VERSION::MAJOR == 5 && ::ActiveRecord::VERSION::MINOR == 0
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goldiloader-2.0.1 lib/goldiloader/compatibility.rb
goldiloader-2.0.0 lib/goldiloader/compatibility.rb