We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b91395 commit 061cf11Copy full SHA for 061cf11
lib/grape/util/stackable_values.rb
@@ -15,8 +15,8 @@ def [](name)
15
return @frozen_values[name] if @frozen_values.key? name
16
17
value = []
18
- value.concat(@inherited_values[name]) if @inherited_values[name]
19
- value.concat(@new_values[name]) if @new_values[name]
+ value.concat(@inherited_values[name] || [])
+ value.concat(@new_values[name] || [])
20
value
21
end
22
0 commit comments