Class: Decidim::AttachmentCollection

Inherits:
ApplicationRecord show all
Includes:
TranslatableResource
Defined in:
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.

Instance Method Summary collapse

Instance Method Details

#unused?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/decidim/attachment_collection.rb', line 15

def unused?
  attachments.empty?
end