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
#category_label, #category_label_singular, #posts_component_for_meeting
Instance Method Details
#component_settings ⇒ Object
21
22
23
|
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 21
def component_settings
model.component.settings
end
|
#current_component ⇒ Object
25
26
27
|
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 25
def current_component
model.component
end
|
#current_settings ⇒ Object
17
18
19
|
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 17
def current_settings
model.component.current_settings
end
|
#participatory_space ⇒ Object
29
30
31
|
# File 'app/helpers/decidim/posts/post_cells_helper.rb', line 29
def participatory_space
@participatory_space ||= current_component.participatory_space
end
|