Sha256: b35d619807b6b554d2821bee465f4b19deaf67c93a856627628752abba95a96b

Contents?: true

Size: 457 Bytes

Versions: 17

Compression:

Stored size: 457 Bytes

Contents

module GovukAppConfig
  class Railtie < Rails::Railtie
    initializer('govuk_app_config') do |app|
      GovukXRay.initialize(app) if Rails.env.production? && !ENV.has_key?("GOVUK_APP_CONFIG_DISABLE_XRAY")
    end

    config.before_initialize do
      GovukLogging.configure if Rails.env.production?
    end

    config.after_initialize do
      GovukXRay.start if Rails.env.production? && !ENV.has_key?("GOVUK_APP_CONFIG_DISABLE_XRAY")
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
govuk_app_config-1.20.2 lib/govuk_app_config/railtie.rb
govuk_app_config-1.20.1 lib/govuk_app_config/railtie.rb
govuk_app_config-1.20.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.19.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.18.1 lib/govuk_app_config/railtie.rb
govuk_app_config-1.17.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.16.3 lib/govuk_app_config/railtie.rb
govuk_app_config-1.16.1 lib/govuk_app_config/railtie.rb
govuk_app_config-1.16.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.15.1 lib/govuk_app_config/railtie.rb
govuk_app_config-1.15.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.14.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.13.1 lib/govuk_app_config/railtie.rb
govuk_app_config-1.13.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.12.0 lib/govuk_app_config/railtie.rb
govuk_app_config-1.11.3 lib/govuk_app_config/railtie.rb
govuk_app_config-1.11.2 lib/govuk_app_config/railtie.rb