Class: Decidim::ParticipatoryProcesses::ContentBlocks::ProcessesSettingsFormCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::ParticipatoryProcesses::ContentBlocks::ProcessesSettingsFormCell
- Defined in:
- app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb
Instance Method Summary collapse
- #content_block ⇒ Object
- #default_filter_label ⇒ Object
- #default_filter_options ⇒ Object
- #include_default_filter_setting? ⇒ Boolean
Instance Method Details
#content_block ⇒ Object
9 10 11 |
# File 'app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb', line 9 def content_block [:content_block] end |
#default_filter_label ⇒ Object
17 18 19 |
# File 'app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb', line 17 def default_filter_label I18n.t("decidim.participatory_processes.admin.content_blocks.highlighted_processes.selection_criteria") end |
#default_filter_options ⇒ Object
21 22 23 24 |
# File 'app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb', line 21 def [[I18n.t("decidim.participatory_processes.admin.content_blocks.highlighted_processes.active"), "active"], [I18n.t("decidim.participatory_processes.admin.content_blocks.highlighted_processes.all"), "all"]] end |
#include_default_filter_setting? ⇒ Boolean
13 14 15 |
# File 'app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb', line 13 def include_default_filter_setting? form.object.settings.attribute_names.include? "default_filter" end |