Permalink
Browse files

Fix rdoc around env_name

  • Loading branch information...
1 parent 807373f commit a1d012b6278ece42bb2c5be828c43bdb5c762d15 @durran durran committed Jun 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/mongoid/config/environment.rb
@@ -8,11 +8,13 @@ module Environment
# Get the name of the environment that we are running under. This first
# looks for Rails, then Sinatra, then a RACK_ENV environment variable,
- # and if none of those are found returns "development".
+ # and if none of those are found raises an error.
#
# @example Get the env name.
# Environment.env_name
#
+ # @raise [ Errors::NoEnvironment ] If no environment was set.
+ #
# @return [ String ] The name of the current environment.
#
# @since 2.3.0

0 comments on commit a1d012b

Please sign in to comment.