lib/grape/api.rb in grape-0.18.0 vs lib/grape/api.rb in grape-0.19.0

- old
+ new

@@ -159,10 +159,10 @@ route_settings[:methods] ||= [] route_settings[:methods] << route.request_method route_settings[:endpoint] = route.app # using the :any shorthand produces [nil] for route methods, substitute all manually - route_settings[:methods] = %w(GET PUT POST DELETE PATCH HEAD OPTIONS) if route_settings[:methods].include?('ANY') + route_settings[:methods] = %w(GET PUT POST DELETE PATCH HEAD OPTIONS) if route_settings[:methods].include?('*') end end # The paths we collected are prepared (cf. Path#prepare), so they # contain already versioning information when using path versioning.