Class: Elabs::Upload

Inherits:
ApplicationContentRecord show all
Defined in:
app/models/elabs/upload.rb

Constant Summary collapse

SLUGGABLE_FIELD =
:title
ADDITIONAL_HABTM_COUNTER_CACHES =
[
  %w[albums uploads],
  %w[projects uploads]
].freeze

Constants inherited from ApplicationContentRecord

ApplicationContentRecord::SLUG_FIELD

Instance Attribute Summary

Attributes inherited from ApplicationRecord

#changed_by

Instance Method Summary collapse

Methods included from Concerns::Sluggable

#fill_slug, #to_param

Methods included from Concerns::Taggable

#save_tags_list, #tags_list

Methods included from Concerns::ActableEntity

#minor_update=, #minor_update?

Methods included from Concerns::ContentEntity

#draft?, #locked?, #not_publicly_visible?, #publicly_visible?, #published?, #unlocked?

Instance Method Details

#long_text_to_displayObject



44
45
46
# File 'app/models/elabs/upload.rb', line 44

def long_text_to_display
  description
end

#short_text_to_displayObject



40
41
42
# File 'app/models/elabs/upload.rb', line 40

def short_text_to_display
  nil
end

#title_to_displayObject



36
37
38
# File 'app/models/elabs/upload.rb', line 36

def title_to_display
  title
end