Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle PATCH method.

  • Loading branch information...
commit d25f63a40eb1b420804e83309d3f3e3d3c8a2edb 1 parent 7f88457
@neglectedvalue neglectedvalue authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/yard/sinatra.rb
View
3  lib/yard/sinatra.rb
@@ -100,6 +100,7 @@ class RouteHandler < Ruby::Base
handles method_call(:get)
handles method_call(:post)
handles method_call(:put)
+ handles method_call(:patch)
handles method_call(:delete)
handles method_call(:head)
handles method_call(:not_found)
@@ -117,7 +118,7 @@ def http_path
module Legacy
class RouteHandler < Ruby::Legacy::Base
include AbstractRouteHandler
- handles /\A(get|post|put|delete|head|not_found)[\s\(].*/m
+ handles /\A(get|post|put|patch|delete|head|not_found)[\s\(].*/m
def http_verb
statement.tokens.first.text.upcase
Please sign in to comment.
Something went wrong with that request. Please try again.