Class: MergeRequestDiffEntity

Inherits:
Grape::Entity
  • Object
show all
Includes:
GitHelper, Gitlab::Routing, MergeRequestsHelper
Defined in:
app/serializers/merge_request_diff_entity.rb

Instance Method Summary collapse

Methods included from MergeRequestsHelper

#allow_collaboration_unavailable_reason, #ci_build_details_path, #different_base?, #format_mr_branch_names, #merge_params, #merge_path_description, #merge_request_button_hidden?, #merge_request_button_visibility, #merge_request_source_project_for_project, #merge_request_version_path, #mr_change_branches_path, #mr_css_classes, #new_mr_from_push_event, #new_mr_path_from_push_event, #state_name_with_icon, #tab_link_for, #target_projects, #version_index

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods included from GitHelper

#short_sha, #strip_signature

Methods included from Gitlab::Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Instance Method Details

#merge_requestObject


63
64
65
# File 'app/serializers/merge_request_diff_entity.rb', line 63

def merge_request
  options[:merge_request]
end