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 aa2e26f commit f9ab7f7Copy full SHA for f9ab7f7
lib/metasploit/framework/parsed_options/base.rb
@@ -57,7 +57,7 @@ def configure(application)
57
#
58
# @return [void]
59
def environment!
60
- if defined?(Rails) && Rails.instance_variable_defined?(:@_env)
+ if defined?(Rails) && Rails.instance_variable_defined?(:@_env) && Rails.env != options.environment
61
raise "#{self.class}##{__method__} called too late to set RAILS_ENV: Rails.env already memoized"
62
end
63
0 commit comments