Class: Decidim::AttachmentCollection

Inherits:
ApplicationRecord show all
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)


12
13
14
# File 'app/models/decidim/attachment_collection.rb', line 12

def unused?
  attachments.empty?
end