Remove code introduced when endpoint was in MR controller.

This commit is contained in:
Rubén Dávila 2016-02-08 15:45:56 -05:00 committed by Robert Speicher
parent a28eef1d1a
commit 9d4c105ab0
2 changed files with 1 additions and 3 deletions

View file

@ -2,8 +2,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
before_action :module_enabled
before_action :merge_request, only: [
:edit, :update, :show, :diffs, :commits, :builds, :merge, :merge_check,
:ci_status, :toggle_subscription, :cancel_merge_when_build_succeeds,
:revert
:ci_status, :toggle_subscription, :cancel_merge_when_build_succeeds
]
before_action :closes_issues, only: [:edit, :update, :show, :diffs, :commits, :builds]
before_action :validates_merge_request, only: [:show, :diffs, :commits, :builds]

View file

@ -591,7 +591,6 @@ Rails.application.routes.draw do
post :cancel_merge_when_build_succeeds
get :ci_status
post :toggle_subscription
post :revert
end
collection do