Class: ResourceEvent
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ResourceEvent
- Includes:
- Gitlab::Utils::StrongMemoize, Importable, IssueResourceEvent, WorkItemResourceEvent
- Defined in:
- app/models/resource_event.rb
Direct Known Subclasses
ResourceLabelEvent, ResourceStateEvent, ResourceTimeboxEvent, WorkItems::ResourceLinkEvent
Constant Summary
Constants inherited from ApplicationRecord
Constants included from HasCheckConstraints
HasCheckConstraints::NOT_NULL_CHECK_PATTERN
Constants included from ResetOnColumnErrors
ResetOnColumnErrors::MAX_RESET_PERIOD
Instance Attribute Summary
Attributes included from Importable
#importing, #user_contributions
Instance Method Summary collapse
Methods included from WorkItemResourceEvent
#synthetic_note_class, #trigger_note_subscription_create, #work_item_synthetic_system_note
Methods inherited from ApplicationRecord
===, cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, nullable_column?, 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
Methods included from ResetOnColumnErrors
#reset_on_union_error, #reset_on_unknown_attribute_error
Methods included from Gitlab::SensitiveSerializableHash
Instance Method Details
#discussion_id ⇒ Object
17 18 19 20 21 |
# File 'app/models/resource_event.rb', line 17 def discussion_id strong_memoize(:discussion_id) do Digest::SHA1.hexdigest(discussion_id_key.join("-")) end end |
#issuable ⇒ Object
23 24 25 |
# File 'app/models/resource_event.rb', line 23 def issuable raise NoMethodError, "`#{self.class.name}#issuable` method must be implemented" end |