Class: GroupLabel

Inherits:
Label show all
Defined in:
app/models/group_label.rb

Constant Summary

Constants inherited from Label

Label::DEFAULT_COLOR

Constants included from Gitlab::SQL::Pattern

Gitlab::SQL::Pattern::MIN_CHARS_FOR_PARTIAL_MATCHING, Gitlab::SQL::Pattern::REGEX_QUOTED_WORD

Constants included from CacheMarkdownField

CacheMarkdownField::INVALIDATED_BY

Instance Method Summary collapse

Methods inherited from Label

#as_json, #closed_issues_count, #color, color_for, #description=, #hook_attrs, left_join_priorities, link_reference_pattern, min_chars_for_partial_matching, on_project_board?, #open_issues_count, #open_merge_requests_count, optionally_subscribed_by, #present, #prioritize!, prioritized, #priority, #priority?, reference_pattern, reference_prefix, search, #text_color, #title=, #to_reference, #unprioritize!, unprioritized

Methods included from Presentable

#present

Methods included from Subscribable

#set_subscription, #subscribe, #subscribed?, #subscribed_without_subscriptions?, #subscribers, #toggle_subscription, #unsubscribe

Methods included from Referable

#referable_inspect, #reference_link_text, #to_reference, #to_reference_base

Methods included from CacheMarkdownField

#attribute_invalidated?, #banzai_render_context, #cached_html_for, #cached_html_up_to_date?, #can_cache_field?, #invalidated_markdown_cache?, #latest_cached_markdown_version, #local_version, #parent_user, #refresh_markdown_cache, #refresh_markdown_cache!, #rendered_field_content, #skip_project_check?, #updated_cached_html_for

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#subject_foreign_keyObject


10
11
12
# File 'app/models/group_label.rb', line 10

def subject_foreign_key
  'group_id'
end