class GovukPublishingComponents::AppHelpers::Environment
Constants
- GOVUK_ENVIRONMENTS
Public Class Methods
current_acceptance_environment()
click to toggle source
The “acceptance environment” we're in - not the same as Rails env. Can be “production”, “staging”, “integration”, “development” or “example” (if running on Heroku)
# File lib/govuk_publishing_components/app_helpers/environment.rb, line 8 def self.current_acceptance_environment return "example" if ENV["HEROKU"] GOVUK_ENVIRONMENTS.include?(ENV["GOVUK_ENVIRONMENT_NAME"]) ? ENV["GOVUK_ENVIRONMENT_NAME"] : "development" end