Sha256: 56440aa85e2ad2f7894cd34257568fb2fa60a25ce3931cea2114ee875f5572ab

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

module Rails::Application::ConfigurationExtension
  def load_database_yaml
    ConfigDefault.load(:database, key: nil)
  end

  def database_configuration
    load_database_yaml
  end
end

Rails::Application::Configuration.prepend(Rails::Application::ConfigurationExtension)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
config_default-0.2.0 lib/config_default/rails/application/configuration_extension.rb
config_default-0.1.2 lib/config_default/rails/application/configuration_extension.rb
config_default-0.1.1 lib/config_default/rails/application/configuration_extension.rb
config_default-0.1.0 lib/config_default/rails/application/configuration_extension.rb