lib/grape/util/stackable_values.rb in grape-0.19.1 vs lib/grape/util/stackable_values.rb in grape-0.19.2
- old
+ new
@@ -13,11 +13,11 @@
def [](name)
return @frozen_values[name] if @frozen_values.key? name
value = []
- value.concat(@inherited_values[name]) if @inherited_values[name]
- value.concat(@new_values[name]) if @new_values[name]
+ value.concat(@inherited_values[name] || [])
+ value.concat(@new_values[name] || [])
value
end
def []=(name, value)
raise if @frozen_values.key? name