method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: EnvironmentInquirer
new(env) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/environment_inquirer.rb, line 15
    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
Register or log in to add new notes.