Class: Decidim::Meetings::AgendaItemPresenter

Inherits:
ResourcePresenter
  • Object
show all
Includes:
ResourceHelper
Defined in:
app/presenters/decidim/meetings/agenda_item_presenter.rb

Overview

Decorator for agenda items

Instance Method Summary collapse

Instance Method Details

#agenda_itemObject



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, strip_tags)
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