[#465] remove old before_action

This commit is contained in:
Alexander Machehin 2015-04-13 13:30:32 +05:00
parent 751c820d80
commit f53a6c0e2f
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,7 @@ class Projects::IssuesController < Projects::BaseController
skip_before_action :authenticate_user!, only: [:index, :show] if APP_CONFIG['anonymous_access']
before_action :load_issue, only: %i(show edit update destroy)
before_action :load_and_authorize_label, only: %i(create_label update_label destroy_label)
before_action :find_collaborators, only: %i(new create show search_collaborators)
before_action :find_collaborators, only: :search_collaborators
layout false, only: [:update, :search_collaborators]

View File

@ -4,7 +4,6 @@ class Projects::PullRequestsController < Projects::BaseController
before_action :load_issue, except: %i(index autocomplete_to_project new create)
before_action :load_pull, except: %i(index autocomplete_to_project new create)
before_action :find_collaborators, only: %i(new create show)
def new
to_project = find_destination_project(false)