Class: ActiveSupport::EnvironmentInquirer

Inherits:
StringInquirer
  • Object
show all
Defined in:
lib/app_config_for/legacy_support.rb

Overview

Note:

This legacy support is only included if the existing ActiveSupport version is below 6.1.0. If your application is using any version of ActiveSupport below 6.1.4 it is strongly suggested you upgrade your application due to security and bug fixes. This backwards compatability is only enough to support AppConfigFor and is not to be considered a full backport of existing features. This support will be removed in the future.

Constant Summary collapse

Environments =

Default environments

%w(development test production)

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ EnvironmentInquirer

Returns a new instance of EnvironmentInquirer.



27
28
29
30
# File 'lib/app_config_for/legacy_support.rb', line 27

def initialize(env)
  super(env)
  Environments.each { |e| instance_variable_set(:"@#{e}", env == e) }
end