Class: Spina::Admin::Conferences::PresentationAttachment
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::Admin::Conferences::PresentationAttachment
- Defined in:
- app/models/spina/admin/conferences/presentation_attachment.rb
Overview
Presentation attachment records.
Instance Attribute Summary collapse
-
#attachment ⇒ Spina::Attachment?
Directly associated attachment.
-
#presentation ⇒ Presentation?
Directly associated presentation.
-
#presentation_attachment_type ⇒ PresentationAttachmentType?
Directly associated presentation attachment type.
Instance Method Summary collapse
-
#name ⇒ String?
Name of associated presentation attachment type.
Instance Attribute Details
#attachment ⇒ Spina::Attachment?
Returns directly associated attachment.
18 |
# File 'app/models/spina/admin/conferences/presentation_attachment.rb', line 18 belongs_to :attachment, class_name: 'Spina::Attachment' |
#presentation ⇒ Presentation?
Returns directly associated presentation.
10 |
# File 'app/models/spina/admin/conferences/presentation_attachment.rb', line 10 belongs_to :presentation, -> { includes(:translations) }, inverse_of: :attachments, touch: true |
#presentation_attachment_type ⇒ PresentationAttachmentType?
Returns directly associated presentation attachment type.
13 14 15 |
# File 'app/models/spina/admin/conferences/presentation_attachment.rb', line 13 belongs_to :attachment_type, -> { includes(:translations) }, class_name: 'Spina::Admin::Conferences::PresentationAttachmentType', inverse_of: :presentation_attachments, touch: true |
Instance Method Details
#name ⇒ String?
Note:
Delegated to #presentation_attachment_type.
Returns name of associated presentation attachment type.
23 |
# File 'app/models/spina/admin/conferences/presentation_attachment.rb', line 23 delegate :name, to: :attachment_type, allow_nil: true |