Sha256: dd0c7c255476d5fc00bb05ec7e0ed65f8880f9bf01c4cca6a0a86a4db0b3b600

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

# frozen_string_literal: true

module ConfigDefault::RailsApplicationExtension
  def config_for(name, env: Rails.env)
    data = ConfigDefault.load(name, key: env, deep_symbolize_keys: true)
    ActiveSupport::OrderedOptions.new.merge(data)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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