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



22
23
24
# File 'decidim-core/app/models/decidim/attachment_collection.rb', line 22

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

Instance Method Details

#unused?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'decidim-core/app/models/decidim/attachment_collection.rb', line 18

def unused?
  attachments.empty?
end