Class: MergeRequestUserEntity

Inherits:
API::Entities::UserBasic show all
Includes:
RequestAwareEntity, UserStatusTooltip
Defined in:
app/serializers/merge_request_user_entity.rb

Class Method Summary collapse

Methods included from RequestAwareEntity

#request

Methods included from UsersHelper

#admin_user_actions_data_attributes, #admin_users_data_attributes, #ban_feature_available?, #can_force_email_confirmation?, #confirm_user_data, #current_user_menu?, #current_user_menu_items, #display_public_email?, #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_badges_in_admin_section, #user_display_name, #user_email_help_text, #user_internal_regex_data, #user_link, #user_status, #work_information

Methods included from EmojiHelper

#emoji_icon

Class Method Details

.satisfies(*methods) ⇒ Object


7
8
9
# File 'app/serializers/merge_request_user_entity.rb', line 7

def self.satisfies(*methods)
  ->(_, options) { methods.all? { |m| options[:merge_request].try(m) } }
end