Class: Decidim::ParticipatoryProcess
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Decidim::ParticipatoryProcess
- Includes:
- HasAttachments, Participable, Publicable, Scopable
- Defined in:
- app/models/decidim/participatory_process.rb
Overview
Interaction between a user and an organization is done via a ParticipatoryProcess. It’s a unit of action from the Organization point of view that groups several features (proposals, debates…) distributed in steps that get enabled or disabled depending on which step is currently active.
Class Method Summary collapse
-
.promoted ⇒ Object
Scope to return only the promoted processes.
Instance Method Summary collapse
Class Method Details
.promoted ⇒ Object
Scope to return only the promoted processes.
Returns an ActiveRecord::Relation.
54 55 56 |
# File 'app/models/decidim/participatory_process.rb', line 54 def self.promoted where(promoted: true) end |
Instance Method Details
#hashtag ⇒ Object
58 59 60 |
# File 'app/models/decidim/participatory_process.rb', line 58 def hashtag attributes["hashtag"].to_s.delete("#") end |