Sha256: 537d459f02bc36370400f23dfd41f44809d2cb5ea9e2004a72e4ba7cd8518d41

Contents?: true

Size: 725 Bytes

Versions: 3

Compression:

Stored size: 725 Bytes

Contents

# frozen_string_literal: true

module Runger::Rails
end

require 'runger/rails/config'
require 'runger/rails/loaders'
require 'runger/rails/settings'

# 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

3 entries across 3 versions & 1 rubygems

Version Path
runger_config-5.2.0 lib/runger/rails.rb
runger_config-5.1.0 lib/runger/rails.rb
runger_config-5.0.0 lib/runger/rails.rb