Class: Decidim::Meetings::AgendaItemPresenter
- Inherits:
-
ResourcePresenter
- Object
- ResourcePresenter
- Decidim::Meetings::AgendaItemPresenter
- Includes:
- ResourceHelper
- Defined in:
- app/presenters/decidim/meetings/agenda_item_presenter.rb
Overview
Decorator for agenda items
Instance Method Summary collapse
- #agenda_item ⇒ Object
- #description(links: false, strip_tags: false, all_locales: false) ⇒ Object
- #editor_description(all_locales: false) ⇒ Object
Instance Method Details
#agenda_item ⇒ Object
11 12 13 |
# File 'app/presenters/decidim/meetings/agenda_item_presenter.rb', line 11 def agenda_item __getobj__ end |
#description(links: false, strip_tags: false, all_locales: false) ⇒ Object
15 16 17 18 19 |
# File 'app/presenters/decidim/meetings/agenda_item_presenter.rb', line 15 def description(links: false, strip_tags: false, all_locales: false) return unless agenda_item content_handle_locale(agenda_item.description, all_locales, links, ) end |
#editor_description(all_locales: false) ⇒ Object
21 22 23 24 25 |
# File 'app/presenters/decidim/meetings/agenda_item_presenter.rb', line 21 def editor_description(all_locales: false) return unless agenda_item editor_locales(agenda_item.description, all_locales) end |