Class: Decidim::ParticipatoryProcessGroup

Inherits:
ApplicationRecord show all
Includes:
HasUploadValidations, Resourceable, Traceable, TranslatableResource
Defined in:
decidim-participatory_processes/app/models/decidim/participatory_process_group.rb

Class Method Summary collapse

Methods included from HasUploadValidations

#maximum_avatar_size, #maximum_upload_size

Class Method Details

.log_presenter_class_for(_log) ⇒ Object


33
34
35
# File 'decidim-participatory_processes/app/models/decidim/participatory_process_group.rb', line 33

def self.log_presenter_class_for(_log)
  Decidim::ParticipatoryProcesses::AdminLog::ParticipatoryProcessGroupPresenter
end

Scope to return only the promoted groups.

Returns an ActiveRecord::Relation.


29
30
31
# File 'decidim-participatory_processes/app/models/decidim/participatory_process_group.rb', line 29

def self.promoted
  where(promoted: true)
end