Class: Elabs::Project

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

Constant Summary collapse

SLUGGABLE_FIELD =
:name

Constants inherited from ApplicationContentRecord

ApplicationContentRecord::SLUG_FIELD

Constants included from Concerns::CountableEntity

Concerns::CountableEntity::ADDITIONAL_HABTM_COUNTER_CACHES

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



38
39
40
# File 'app/models/elabs/project.rb', line 38

def long_text_to_display
  description
end

#short_text_to_displayObject



34
35
36
# File 'app/models/elabs/project.rb', line 34

def short_text_to_display
  short_description
end

#title_to_displayObject



30
31
32
# File 'app/models/elabs/project.rb', line 30

def title_to_display
  name
end