Sha256: eeb2e2cbc9bd9fe26017dddbc8ae5ee5dbfd857c3f5fb9aa89d782dc05bd7ae5

Contents?: true

Size: 711 Bytes

Versions: 46

Compression:

Stored size: 711 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # This error is raised when a session configuration contains both a uri and
    # other standard options.
    class MixedSessionConfiguration < MongoidError

      # 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
      def initialize(name, config)
        super(
          compose_message(
            "mixed_session_configuration",
            { 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/mixed_session_configuration.rb
mongoid-3.1.7 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.2 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.1 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0.rc2 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0.rc1 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0.beta2 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0.beta1 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0.alpha2 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-4.0.0.alpha1 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-3.1.6 lib/mongoid/errors/mixed_session_configuration.rb
sepastian-mongoid-rails4-4.0.1.alpha lib/mongoid/errors/mixed_session_configuration.rb
sepastian-mongoid-rails4-4.0.0.alpha lib/mongoid/errors/mixed_session_configuration.rb
mongoid-3.1.5 lib/mongoid/errors/mixed_session_configuration.rb
mongoid_heroku_stable-4.0.0 lib/mongoid/errors/mixed_session_configuration.rb
mongoid_rails4-4.0.0 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-3.1.4 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-3.1.3 lib/mongoid/errors/mixed_session_configuration.rb
mongoid-3.1.2 lib/mongoid/errors/mixed_session_configuration.rb