lib/grape/util/stackable_values.rb in grape-2.0.0 vs lib/grape/util/stackable_values.rb in grape-2.1.0

- old
+ new

@@ -1,9 +1,7 @@ # frozen_string_literal: true -require_relative 'base_inheritable' - module Grape module Util class StackableValues < BaseInheritable # Even if there is no value, an empty array will be returned. def [](name) @@ -29,13 +27,10 @@ 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) - end + inherited_value + new_value end end end end