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.
2 parents 61a3e61 + ddeb955 commit cac6568Copy full SHA for cac6568
railties/lib/rails.rb
@@ -71,6 +71,7 @@ def root
71
# Rails.env # => "development"
72
# Rails.env.development? # => true
73
# Rails.env.production? # => false
74
+ # Rails.env.local? # => true true for "development" and "test", false for anything else
75
def env
76
@_env ||= ActiveSupport::EnvironmentInquirer.new(ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence || "development")
77
end
0 commit comments