Class: Decidim::AttachmentCollection

Inherits:
ApplicationRecord show all
Includes:
Traceable, TranslatableResource
Defined in:
decidim-core/app/models/decidim/attachment_collection.rb

Overview

Categories serve as a taxonomy for attachments to use for while in the context of a participatory space.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



20
21
22
# File 'decidim-core/app/models/decidim/attachment_collection.rb', line 20

def self.log_presenter_class_for(_log)
  Decidim::AdminLog::AttachmentCollectionPresenter
end

Instance Method Details

#unused?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'decidim-core/app/models/decidim/attachment_collection.rb', line 16

def unused?
  attachments.empty?
end