class Mongoid::Errors::MixedSessionConfiguration
This error is raised when a session configuration contains both a uri and other standard options.
Public Class Methods
new(name, config)
click to toggle source
Initialize the error.
@example Initialize the error.
MixedSessionConfiguration.new(:name, {})
@param [ Symbol
] name The name of the session config. @param [ Hash ] config The configuration options.
@since 3.0.0
Calls superclass method
# File lib/mongoid/errors/mixed_session_configuration.rb, line 18 def initialize(name, config) super( compose_message( "mixed_session_configuration", { name: name, config: config } ) ) end