Sha256: 9238e1c3cfad92f9c3019a2467f85ae696b32ee9f54e94c08adc432a5fcf1c49

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module ConfigDefault::Init
  extend self

  def init_rails_monkey_patch!
    return unless Object.const_defined?("Rails")
    return unless Object.const_defined?("Rails::Application")
    return unless Object.const_defined?("Rails::Application::Configuration")

    Rails::Application.prepend(ConfigDefault::RailsApplicationExtension)
    Rails::Application::Configuration.prepend(ConfigDefault::RailsApplicationConfigurationExtension)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
config_default-0.2.1 lib/config_default/init.rb