Sha256: 50f5c6fb61ef3c7f1b384c983c48d9040a8317ebb016cff1a8ce4e2fe7bbf5ab
Contents?: true
Size: 557 Bytes
Versions: 209
Compression:
Stored size: 557 Bytes
Contents
module GovukPublishingComponents module AppHelpers class Environment GOVUK_ENVIRONMENTS = %w[integration staging production].freeze # The "acceptance environment" we're in - not the same as Rails env. # Can be "production", "staging", "integration", "development" or "example" (if running on Heroku) def self.current_acceptance_environment return "example" if ENV["HEROKU"] GOVUK_ENVIRONMENTS.include?(ENV["GOVUK_ENVIRONMENT_NAME"]) ? ENV["GOVUK_ENVIRONMENT_NAME"] : "development" end end end end
Version data entries
209 entries across 209 versions & 1 rubygems