Class: Decidim::Plans::ContentPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::Plans::ContentPresenter
show all
- Includes:
- RichPresenter, TranslatableAttributes
- Defined in:
- app/presenters/decidim/plans/content_presenter.rb
Overview
Instance Method Summary
collapse
#plain_content, #rich_content
Instance Method Details
#body ⇒ Object
21
22
23
|
# File 'app/presenters/decidim/plans/content_presenter.rb', line 21
def body
rich_content(translated_attribute(content.body))
end
|
#content ⇒ Object
13
14
15
|
# File 'app/presenters/decidim/plans/content_presenter.rb', line 13
def content
__getobj__
end
|
#title ⇒ Object
17
18
19
|
# File 'app/presenters/decidim/plans/content_presenter.rb', line 17
def title
plain_content(translated_attribute(content.title))
end
|