We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0239401 commit 2e142d9Copy full SHA for 2e142d9
activesupport/lib/active_support/environment_inquirer.rb
@@ -4,7 +4,9 @@
4
5
module ActiveSupport
6
class EnvironmentInquirer < StringInquirer # :nodoc:
7
- DEFAULT_ENVIRONMENTS = ["development", "test", "production"]
+ # Optimization for the three default environments, so this inquirer doesn't need to rely on
8
+ # the slower delegation through method_missing that StringInquirer would normally entail.
9
+ DEFAULT_ENVIRONMENTS = %w[ development test production ]
10
def initialize(env)
11
super(env)
12
0 commit comments