Skip to content

Commit 4e8b118

Browse files
committed
patch method on the bottom
1 parent af9911b commit 4e8b118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ def after(&block)
282282
imbue(:afters, [block])
283283
end
284284

285-
def patch(paths = ['/'], options = {}, &block); route('PATCH', paths, options, &block) end
286285
def get(paths = ['/'], options = {}, &block); route('GET', paths, options, &block) end
287286
def post(paths = ['/'], options = {}, &block); route('POST', paths, options, &block) end
288287
def put(paths = ['/'], options = {}, &block); route('PUT', paths, options, &block) end
289288
def head(paths = ['/'], options = {}, &block); route('HEAD', paths, options, &block) end
290289
def delete(paths = ['/'], options = {}, &block); route('DELETE', paths, options, &block) end
291290
def options(paths = ['/'], options = {}, &block); route('OPTIONS', paths, options, &block) end
291+
def patch(paths = ['/'], options = {}, &block); route('PATCH', paths, options, &block) end
292292

293293
def namespace(space = nil, &block)
294294
if space || block_given?

0 commit comments

Comments
 (0)