Class: DescriptionVersion

Inherits:
ApplicationRecord show all
Defined in:
app/models/description_version.rb

Class Method Summary collapse

Instance Method Summary collapse

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

Class Method Details

.issuable_attrsObject


9
10
11
# File 'app/models/description_version.rb', line 9

def self.issuable_attrs
  %i(issue merge_request).freeze
end

Instance Method Details

#issuableObject


13
14
15
# File 'app/models/description_version.rb', line 13

def issuable
  issue || merge_request
end