Sha256: 00c832935646d1279cac7dfce43362e79951646cacd684586e7b56b18e06ac33

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module ConfigDefault::RailsMonkeyPatch
  extend self

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

    require "config_default/rails/application_extension"
    require "config_default/rails/application/configuration_extension"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
config_default-0.2.0 lib/config_default/rails_monkey_patch.rb
config_default-0.1.2 lib/config_default/rails_monkey_patch.rb
config_default-0.1.1 lib/config_default/rails_monkey_patch.rb