ee/app/controllers/ee/projects/merge_requests_controller.rb
# rubocop:disable Gitlab/ModuleWithInstanceVariables
# Assigning both @merge_request and @issuable like in
# `Projects::MergeRequests::ApplicationController`, and calling super if
# we don't need the extra includes requires us to disable this cop.
# rubocop: disable CodeReuse/ActiveRecord
disable Gitlab/ModuleWithInstanceVariables
Assigning both @merge_request and @issuable like in
`Projects::MergeRequests::ApplicationController`, and calling super if
we don't need the extra includes requires us to disable this cop.
disable Gitlab / ModuleWithInstanceVariables Assigning both @merge_request and @issuable like in ` Projects :: MergeRequests :: ApplicationController ` and calling super if we don ' t need the extra includes requires us to disable this cop .
def merge_request
        return super unless APPROVAL_RENDERING_ACTIONS.include?(action_name.to_sym)
        @issuable = @merge_request ||= project.merge_requests
                                         .includes(
                                           :approved_by_users,
                                           approvers: :user
                                         )
                                         .find_by!(iid: params[:id])
        super
      end
def merge_request return super unless APPROVAL_RENDERING_ACTIONS . include? ( action_name . to_sym ) @issuable = @merge_request ||= project . merge_requests . includes ( :approved_by_users , approvers : :user ) . find_by! ( iid : params [ :id ] ) super end
rubocop:disable Gitlab/ModuleWithInstanceVariables
Assigning both @merge_request and @issuable like in
`Projects::MergeRequests::ApplicationController`, and calling super if
we don't need the extra includes requires us to disable this cop.
rubocop : disable Gitlab / ModuleWithInstanceVariables Assigning both @merge_request and @issuable like in ` Projects :: MergeRequests :: ApplicationController ` and calling super if we don ' t need the extra includes requires us to disable this cop .