Class: ResourceEvent

Inherits:
ApplicationRecord show all
Includes:
Gitlab::Utils::StrongMemoize, Importable
Defined in:
app/models/resource_event.rb

Instance Attribute Summary

Attributes included from Importable

#imported, #importing

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

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

#discussion_idObject


16
17
18
19
20
# File 'app/models/resource_event.rb', line 16

def discussion_id
  strong_memoize(:discussion_id) do
    Digest::SHA1.hexdigest(discussion_id_key.join("-"))
  end
end