class ActiveSupport::EnvironmentInquirer
:nodoc:
def initialize(env)
def initialize(env) raise(ArgumentError, "'local' is a reserved environment name") if env == "local" super(env) DEFAULT_ENVIRONMENTS.each do |default| instance_variable_set :"@#{default}", env == default end @local = in? LOCAL_ENVIRONMENTS end
def local?
def local? @local end