Sha256: 8675c1bf775d8e93cffc33927ad87b61ab039a9356492d59d41968820b601710
Contents?: true
Size: 547 Bytes
Versions: 80
Compression:
Stored size: 547 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"]) ? ENV["GOVUK_ENVIRONMENT"] : "development" end end end end
Version data entries
80 entries across 80 versions & 1 rubygems