Sha256: b9b0bab6f018a59f57ef46b5f63df8773c6a6a2e489b46e953071ac075f8f26e

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/hash/indifferent_access'

module Runger::Rails::Config ; end

# Enhance config to be more Railsy-like:
# – accept hashes with indeferent access
# - load data from secrets
# - recognize Rails env when loading from YML
module Runger::Rails::Config::ClassMethods
  # Make defaults to be a Hash with indifferent access
  def new_empty_config
    {}.with_indifferent_access
  end
end

Runger::Config.prepend(Runger::Rails::Config)
Runger::Config.singleton_class.prepend(Runger::Rails::Config::ClassMethods)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
runger_config-5.2.0 lib/runger/rails/config.rb
runger_config-5.1.0 lib/runger/rails/config.rb
runger_config-5.0.0 lib/runger/rails/config.rb