Sha256: 0513debb5dd834bda3627bd9e335355c1c18f1e29fa684c54b0df9261f98983a

Contents?: true

Size: 514 Bytes

Versions: 188

Compression:

Stored size: 514 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Errors #:nodoc

    # Raised when the database version is not supported by Mongoid.
    #
    # @example Create the error.
    #   UnsupportedVersion.new(Mongo::ServerVersion.new("1.3.1"))
    class UnsupportedVersion < MongoidError
      def initialize(version)
        super(
          translate(
            "unsupported_version",
            { :version => version, :mongo_version => Mongoid::MONGODB_VERSION }
          )
        )
      end
    end
  end
end

Version data entries

188 entries across 96 versions & 4 rubygems

Version Path
mongoid-2.1.7 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.6 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.5 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.4 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.3 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.2 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.1 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.0 lib/mongoid/errors/unsupported_version.rb