mongoid/mongoid

View on GitHub
lib/mongoid/errors/no_environment.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8
module Mongoid
  module Errors

    # Raised when trying to load configuration with no RACK_ENV set
    class NoEnvironment < MongoidError

      # Create the new no environment error.
      #
      # @example Create the new no environment error.
      #   NoEnvironment.new
      #
      # @since 2.4.0
      def initialize
        super(compose_message("no_environment", {}))
      end
    end
  end
end