Class: MergeRequestCurrentUserEntity

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

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, #fork_modal_options, #on_top_of_branch?, #patch_branch_name, #path_breadcrumbs, #relative_url_root, #selected_branch, #tree_edit_branch, #tree_icon, #tree_join, #vue_file_list_data, #web_ide_button_data

Methods included from WebIdeButtonHelper

#can_collaborate?, #can_create_mr_from_fork?, #edit_url, #fork?, #gitpod_url, #needs_to_fork?, #project_fork, #project_to_use, #readable_blob?, #show_edit_button?, #show_gitpod_button?, #show_pipeline_editor_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, #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, #editing_preview_title, #encode_ide_path, #fork_and_edit_path, #fork_path_for_current_user, #gitignore_names, #gitlab_ci_ymls, #human_access, #ide_edit_path, #ide_fork_and_edit_path, #ide_merge_request_path, #leave_edit_message, #licenses_for_select, #open_raw_blob_button, #parent_dir_raw_path, #readable_blob, #ref_project, #sanitize_svg_data, #show_suggest_pipeline_creation_celebration?, #suggest_pipeline_commit_cookie_name, #vue_blob_app_data

Methods included from RequestAwareEntity

#request

Methods included from UsersHelper

#admin_user_actions_data_attributes, #admin_users_data_attributes, #can_force_email_confirmation?, #can_impersonate_user, #confirm_user_data, #current_user_menu?, #current_user_menu_items, #display_public_email?, #impersonation_enabled?, #impersonation_error_text, #load_max_project_member_accesses, #max_project_member_access, #max_project_member_access_cache_key, #moderation_status, #profile_tab?, #profile_tabs, #user_badges_in_admin_section, #user_clear_status_at, #user_display_name, #user_email_help_text, #user_internal_regex_data, #user_link, #user_profile_actions_data, #user_profile_tabs_app_data, #user_status, #work_information

Methods included from EmojiHelper

#emoji_icon

Instance Method Details

#projectObject



21
22
23
# File 'app/serializers/merge_request_current_user_entity.rb', line 21

def project
  request.respond_to?(:project) && request.project
end