Class: Decidim::ParticipatoryProcessGroup
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Decidim::ParticipatoryProcessGroup
- Includes:
- HasUploadValidations, Resourceable, Traceable, TranslatableResource
- Defined in:
- app/models/decidim/participatory_process_group.rb
Class Method Summary collapse
- .log_presenter_class_for(_log) ⇒ Object
- .participatory_spaces(group_id) ⇒ Object
-
.promoted ⇒ Object
Scope to return only the promoted groups.
Class Method Details
.log_presenter_class_for(_log) ⇒ Object
33 34 35 |
# File 'app/models/decidim/participatory_process_group.rb', line 33 def self.log_presenter_class_for(_log) Decidim::ParticipatoryProcesses::AdminLog::ParticipatoryProcessGroupPresenter end |
.participatory_spaces(group_id) ⇒ Object
37 38 39 |
# File 'app/models/decidim/participatory_process_group.rb', line 37 def self.participatory_spaces(group_id) find(group_id).participatory_processes end |
.promoted ⇒ Object
Scope to return only the promoted groups.
Returns an ActiveRecord::Relation.
29 30 31 |
# File 'app/models/decidim/participatory_process_group.rb', line 29 def self.promoted where(promoted: true) end |