Sha256: 6aa52ad68fe4f68d5abde67b105d864b365acb1dd82cc14283d7b4bf1e0fa7a5

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module ConfigDefault::Init
  extend self

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
config_default-0.2.5 lib/config_default/init.rb
config_default-0.2.4 lib/config_default/init.rb
config_default-0.2.3 lib/config_default/init.rb
config_default-0.2.2 lib/config_default/init.rb