Skip to content

Commit

Permalink
MergedConfig: Support both string & symbol for []
Browse files Browse the repository at this point in the history
Signed-off-by: Julien 'Lta' BALLET <[email protected]>
  • Loading branch information
elthariel committed Nov 11, 2016
1 parent 8b268a2 commit e3f78a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cheffish/merged_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def [](name)
else
result_configs = []
configs.each do |config|
value = config[name]
value = config[name.to_s] || config[name.to_sym]
if !value.nil?
if value.respond_to?(:keys)
result_configs << value
Expand Down

0 comments on commit e3f78a7

Please sign in to comment.