Module: Decidim::Posts::PostCellsHelper

Includes:
ApplicationHelper, CardHelper, LayoutHelper, ApplicationHelper, ResourceReferenceHelper, TranslatableAttributes, TranslationsHelper
Included in:
ContentBlocks::PostsCell, MeetingCell, PostCell, PostHostCell, ReactionMenuCell, ReactionsCell
Defined in:
app/helpers/decidim/posts/post_cells_helper.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#category_label, #category_label_singular, #posts_component_for_meeting

Instance Method Details

#component_settingsObject



21
22
23
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 21

def component_settings
  model.component.settings
end

#current_componentObject



25
26
27
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 25

def current_component
  model.component
end

#current_settingsObject



17
18
19
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 17

def current_settings
  model.component.current_settings
end

#participatory_spaceObject



29
30
31
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 29

def participatory_space
  @participatory_space ||= current_component.participatory_space
end