Methods

Class/Module Index [+]

Quicksearch

Mongoid::Errors::UnsupportedVersion

Raised when the database version is not supported by Mongoid.

@example Create the error.

UnsupportedVersion.new(Mongo::ServerVersion.new("1.3.1"))

Public Class Methods

new(version) click to toggle source
# File lib/mongoid/errors/unsupported_version.rb, line 9
def initialize(version)
  super(
    translate(
      "unsupported_version",
      { :version => version, :mongo_version => Mongoid::MONGODB_VERSION }
    )
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.