add not_found handler to legacy parser, so it works on ruby 1.8
This commit is contained in:
Родитель
a5dc52592c
Коммит
12e2ef3c24
|
@ -117,7 +117,7 @@ module YARD
|
||||||
module Legacy
|
module Legacy
|
||||||
class RouteHandler < Ruby::Legacy::Base
|
class RouteHandler < Ruby::Legacy::Base
|
||||||
include AbstractRouteHandler
|
include AbstractRouteHandler
|
||||||
handles /\A(get|post|put|delete|head)[\s\(].*/m
|
handles /\A(get|post|put|delete|head|not_found)[\s\(].*/m
|
||||||
|
|
||||||
def http_verb
|
def http_verb
|
||||||
statement.tokens.first.text.upcase
|
statement.tokens.first.text.upcase
|
||||||
|
|
Загрузка…
Ссылка в новой задаче