Sha256: 436735d8fe3793f618825af72800bb9d406ff3bc5f50379da39e0bfaa69bead7

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 Bytes

Contents

# frozen_string_literal: true

module Runger
  module Rails
  end
end

require "runger/rails/settings"
require "runger/rails/config"
require "runger/rails/loaders"

# Configure Rails loaders
Runger.loaders.override :yml, Runger::Rails::Loaders::YAML

if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR >= 1
  Runger.loaders.insert_after :yml, :credentials, Runger::Rails::Loaders::Credentials
else
  Runger.loaders.insert_after :yml, :secrets, Runger::Rails::Loaders::Secrets
  Runger.loaders.insert_after :secrets, :credentials, Runger::Rails::Loaders::Credentials
end

# Load Railties after configuring loaders.
# The application could be already initialized, and that would make `Runger.loaders` frozen
require "runger/railtie"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
runger_config-4.0.0 lib/runger/rails.rb