Sha256: c07ac69d24657bf87a21e1e71fde122c930b033532e5f4c96b7b65e73cdae35a

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module Mongoid
  module Compatibility
    module Version
      def self.mongoid3?
        Mongoid::VERSION =~ /^3\./
      end

      def self.mongoid4?
        Mongoid::VERSION =~ /^4\./
      end

      def self.mongoid5?
        Mongoid::VERSION =~ /^5\./
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-compatibility-0.2.0 lib/mongoid/compatibility/version.rb
mongoid-compatibility-0.1.0 lib/mongoid-compatibility/version.rb