Class: Decidim::Posts::ContentBlocks::PostsSettingsFormCell

Inherits:
ViewModel
  • Object
show all
Defined in:
app/cells/decidim/posts/content_blocks/posts_settings_form_cell.rb

Instance Method Summary collapse

Instance Method Details

#available_feedsObject



17
18
19
20
21
22
# File 'app/cells/decidim/posts/content_blocks/posts_settings_form_cell.rb', line 17

def available_feeds
  @available_feeds ||= Decidim::Component
    .where(manifest_name: "posts")
    .where(participatory_space: current_organization.participatory_spaces)

end

#available_feeds_optionsObject



11
12
13
14
15
# File 'app/cells/decidim/posts/content_blocks/posts_settings_form_cell.rb', line 11

def available_feeds_options
  available_feeds.map do |component|
    [translated_attribute(component.name), component.id]
  end
end