From 015518d89c1a09854bc9248c8c0ea254213180e4 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 15 Apr 2014 15:14:58 +0600 Subject: [PATCH] [#345] fix update commit --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 54e5e8797..d7b4e35d2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -371,7 +371,7 @@ Rosa::Application.routes.draw do # Commit comments post '/commit/:commit_id/comments(.:format)' => "comments#create", as: :project_commit_comments get '/commit/:commit_id/comments/:id(.:format)' => "comments#edit", as: :edit_project_commit_comment - put '/commit/:commit_id/comments/:id(.:format)' => "comments#update", as: :project_commit_comment + patch '/commit/:commit_id/comments/:id(.:format)' => "comments#update", as: :project_commit_comment delete '/commit/:commit_id/comments/:id(.:format)' => "comments#destroy" get '/commit/:commit_id/add_line_comments(.:format)' => "comments#new_line", as: :new_line_commit_comment # Commit subscribes