lib/grape/api/instance.rb in grape-1.2.1 vs lib/grape/api/instance.rb in grape-1.2.2

- old
+ new

@@ -181,10 +181,10 @@ # contain already versioning information when using path versioning. # Disable versioning so adding a route won't prepend versioning # informations again. without_root_prefix do without_versioning do - routes_map.each do |_, config| + routes_map.each_value do |config| methods = config[:methods] allowed_methods = methods.dup unless self.class.namespace_inheritable(:do_not_route_head) allowed_methods |= [Grape::Http::Headers::HEAD] if allowed_methods.include?(Grape::Http::Headers::GET)