lib/grape/util/stackable_values.rb in grape-1.3.1 vs lib/grape/util/stackable_values.rb in grape-1.3.2
- old
+ new
@@ -27,12 +27,14 @@
end
protected
def concat_values(inherited_value, new_value)
+ return inherited_value unless new_value
+
[].tap do |value|
value.concat(inherited_value)
- value.concat(new_value) if new_value
+ value.concat(new_value)
end
end
end
end
end