We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39dd40f + 214841e commit 8cb17b5Copy full SHA for 8cb17b5
lib/tapioca/helpers/config_helper.rb
@@ -68,7 +68,7 @@ def config_options(options)
68
.returns(Thor::CoreExt::HashWithIndifferentAccess)
69
end
70
def merge_options(*options)
71
- options.each_with_object(Thor::CoreExt::HashWithIndifferentAccess.new) do |option, result|
+ merged = options.each_with_object({}) do |option, result|
72
result.merge!(option || {}) do |_, this_val, other_val|
73
if this_val.is_a?(Hash) && other_val.is_a?(Hash)
74
Thor::CoreExt::HashWithIndifferentAccess.new(this_val.merge(other_val))
@@ -77,6 +77,8 @@ def merge_options(*options)
77
78
79
80
+
81
+ Thor::CoreExt::HashWithIndifferentAccess.new(merged)
82
83
84
0 commit comments