Skip to content

Commit a200112

Browse files
committed
only wrap instances of Array in Defaults.
1 parent ea8ff1d commit a200112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/declarative/defaults.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def handle_array_and_deprecate(variables)
3737
# same-named arrays.
3838
def self.wrap_arrays(variables)
3939
Hash[ variables.
40-
find_all { |k,v| v.is_a?(Array) }.
40+
find_all { |k,v| v.instance_of?(Array) }.
4141
collect { |k,v| [k, Variables::Append(v)] }
4242
]
4343
end

0 commit comments

Comments
 (0)