Commit 9d4c105a authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher

Remove code introduced when endpoint was in MR controller.

parent a28eef1d
...@@ -2,8 +2,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -2,8 +2,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
before_action :module_enabled before_action :module_enabled
before_action :merge_request, only: [ before_action :merge_request, only: [
:edit, :update, :show, :diffs, :commits, :builds, :merge, :merge_check, :edit, :update, :show, :diffs, :commits, :builds, :merge, :merge_check,
:ci_status, :toggle_subscription, :cancel_merge_when_build_succeeds, :ci_status, :toggle_subscription, :cancel_merge_when_build_succeeds
:revert
] ]
before_action :closes_issues, only: [:edit, :update, :show, :diffs, :commits, :builds] before_action :closes_issues, only: [:edit, :update, :show, :diffs, :commits, :builds]
before_action :validates_merge_request, only: [:show, :diffs, :commits, :builds] before_action :validates_merge_request, only: [:show, :diffs, :commits, :builds]
......
...@@ -591,7 +591,6 @@ Rails.application.routes.draw do ...@@ -591,7 +591,6 @@ Rails.application.routes.draw do
post :cancel_merge_when_build_succeeds post :cancel_merge_when_build_succeeds
get :ci_status get :ci_status
post :toggle_subscription post :toggle_subscription
post :revert
end end
collection do collection do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment