Class: MergeRequestUserEntity

Inherits:
CurrentUserEntity show all
Includes:
BlobHelper, RequestAwareEntity, TreeHelper
Defined in:
app/serializers/merge_request_user_entity.rb

Constant Summary

Constants included from TreeHelper

TreeHelper::FILE_LIMIT

Instance Method Summary collapse

Methods included from TreeHelper

#breadcrumb_data_attributes, #can_edit_tree?, #commit_in_fork_help, #commit_in_single_accessible_branch, #directory_download_links, #edit_in_new_fork_notice, #edit_in_new_fork_notice_action, #edit_in_new_fork_notice_now, #fast_project_blob_path, #fast_project_tree_path, #flatten_tree, #on_top_of_branch?, #patch_branch_name, #path_breadcrumbs, #relative_url_root, #render_tree, #selected_branch, #tree_content_data, #tree_edit_branch, #tree_edit_project, #tree_icon, #tree_join, #up_dir_path, #vue_file_list_data, #web_ide_button_data

Methods included from WebIdeButtonHelper

#can_collaborate?, #can_create_mr_from_fork?, #can_push_code?, #edit_url, #fork?, #gitpod_url, #needs_to_fork?, #project_fork, #project_to_use, #readable_blob?, #show_edit_button?, #show_gitpod_button?, #show_web_ide_button?, #web_ide_url

Methods included from BlobHelper

#blob_editor_paths, #blob_icon, #blob_raw_path, #blob_raw_url, #blob_render_error_options, #blob_render_error_reason, #can_modify_blob?, #contribution_options, #copy_blob_source_button, #copy_file_path_button, #delete_blob_link, #dockerfile_names, #download_blob_button, #edit_blob_button, #edit_blob_fork_params, #edit_blob_path, #edit_button_tag, #edit_disabled_button_tag, #edit_fork_button_tag, #edit_link_tag, #edit_modify_file_fork_params, #editing_ci_config?, #editing_preview_title, #encode_ide_path, #fork_and_edit_path, #fork_path_for_current_user, #gitignore_names, #gitlab_ci_ymls, #human_access, #ide_edit_button, #ide_edit_path, #ide_fork_and_edit_path, #ide_merge_request_path, #leave_edit_message, #licenses_for_select, #metrics_dashboard_ymls, #modify_file_button, #no_highlight_files, #open_raw_blob_button, #readable_blob, #ref_project, #replace_blob_link, #sanitize_svg_data, #show_suggest_pipeline_creation_celebration?, #suggest_pipeline_commit_cookie_name

Methods included from RequestAwareEntity

#request

Methods included from UsersHelper

#can_force_email_confirmation?, #current_user_menu?, #current_user_menu_items, #impersonation_enabled?, #load_max_project_member_accesses, #max_project_member_access, #max_project_member_access_cache_key, #profile_tab?, #profile_tabs, #show_status_emoji?, #user_activation_data, #user_badges_in_admin_section, #user_block_data, #user_block_effects, #user_deactivation_data, #user_deactivation_effects, #user_display_name, #user_email_help_text, #user_internal_regex_data, #user_link, #user_status, #user_unblock_data, #work_information

Methods included from EmojiHelper

#emoji_icon

Instance Method Details

#projectObject


21
22
23
24
25
# File 'app/serializers/merge_request_user_entity.rb', line 21

def project
  return false unless request.respond_to?(:project) && request.project

  request.project
end