1. Michael Granger
  2. configurability
  3. Issues
Issue #3 resolved

Defaults hash given with Config.new aren't merged correctly

Michael Granger
repo owner created an issue

When creating a Configurability::Config object with a defaults hash, if any of the keys are Strings, they aren't accessible from the new object:

config = Configurability::Config.new( source, 'stringkey' => "String value." )
# => nil

This is because the defaults hash doesn't have its keys converted to Symbols before the merge happens.

Comments (1)

  1. Log in to comment