Sha256: b9dd2d496c15c1f19833e983e073907808cf000ebd5bf53320a06a1b3d1a9a19
Contents?: true
Size: 879 Bytes
Versions: 14
Compression:
Stored size: 879 Bytes
Contents
require "plek" module GovukAppConfig class Railtie < Rails::Railtie initializer "govuk_app_config.configure_govuk_proxy" do |app| if ENV["GOVUK_PROXY_STATIC_ENABLED"] == "true" app.middleware.use GovukProxy::StaticProxy, backend: Plek.find("static") end end initializer "govuk_app_config.configure_open_telemetry" do |app| unless Rails.const_defined?(:Console) GovukOpenTelemetry.configure(app.class.module_parent_name.underscore) end end initializer "govuk_app_config.configure_timezone", before: "active_support.initialize_time_zone" do |app| GovukTimezone.configure(app.config) end config.before_initialize do GovukJsonLogging.configure if ENV["GOVUK_RAILS_JSON_LOGGING"] end config.after_initialize do GovukError.configure unless GovukError.is_configured? end end end
Version data entries
14 entries across 14 versions & 1 rubygems