Class: ResourceStateEvent
Constant Summary
ApplicationRecord::MAX_PLUCK
ResetOnUnionError::MAX_RESET_PERIOD
Instance Attribute Summary
Attributes included from Importable
#imported, #importing
Class Method Summary
collapse
Instance Method Summary
collapse
#discussion_id
#trigger_note_subscription_create, #work_item_synthetic_system_note
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
#serializable_hash
Class Method Details
.issuable_attrs ⇒ Object
16
17
18
|
# File 'app/models/resource_state_event.rb', line 16
def self.issuable_attrs
%i[issue merge_request].freeze
end
|
Instance Method Details
#for_issue? ⇒ Boolean
24
25
26
|
# File 'app/models/resource_state_event.rb', line 24
def for_issue?
issue_id.present?
end
|
#issuable ⇒ Object
20
21
22
|
# File 'app/models/resource_state_event.rb', line 20
def issuable
issue || merge_request
end
|
#synthetic_note_class ⇒ Object
28
29
30
|
# File 'app/models/resource_state_event.rb', line 28
def synthetic_note_class
StateNote
end
|