Sha256: 55456f25879ad4df9ffe51d83d34eb5b6b6599d788e1bac5dfbaca932f74386b

Contents?: true

Size: 657 Bytes

Versions: 46

Compression:

Stored size: 657 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # This error is raised when a session is configured without a database.
    class NoSessionDatabase < MongoidError

      # Create the new error.
      #
      # @example Create the new error.
      #   NoSessionDatabase.new(:default, {}})
      #
      # @param [ Symbol, String ] name The db config key.
      # @param [ Hash ] config The hash configuration options.
      #
      # @since 3.0.0
      def initialize(name, config)
        super(
          compose_message(
            "no_session_database",
            { name: name, config: config }
          )
        )
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 6 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/lib/mongoid/errors/no_session_database.rb
mongoid-3.1.7 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.2 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.1 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0.rc2 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0.rc1 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0.beta2 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0.beta1 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0.alpha2 lib/mongoid/errors/no_session_database.rb
mongoid-4.0.0.alpha1 lib/mongoid/errors/no_session_database.rb
mongoid-3.1.6 lib/mongoid/errors/no_session_database.rb
sepastian-mongoid-rails4-4.0.1.alpha lib/mongoid/errors/no_session_database.rb
sepastian-mongoid-rails4-4.0.0.alpha lib/mongoid/errors/no_session_database.rb
mongoid-3.1.5 lib/mongoid/errors/no_session_database.rb
mongoid_heroku_stable-4.0.0 lib/mongoid/errors/no_session_database.rb
mongoid_rails4-4.0.0 lib/mongoid/errors/no_session_database.rb
mongoid-3.1.4 lib/mongoid/errors/no_session_database.rb
mongoid-3.1.3 lib/mongoid/errors/no_session_database.rb
mongoid-3.1.2 lib/mongoid/errors/no_session_database.rb