Class: Decidim::OrganizationPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::OrganizationPresenter
- Defined in:
- app/presenters/decidim/organization_presenter.rb
Overview
A general presenter to render organization logic to build a manifest
Instance Method Summary collapse
Instance Method Details
#html_name ⇒ Object
6 7 8 |
# File 'app/presenters/decidim/organization_presenter.rb', line 6 def html_name translated_attribute(name).html_safe end |
#pwa_display ⇒ Object
14 15 16 |
# File 'app/presenters/decidim/organization_presenter.rb', line 14 def pwa_display "standalone" end |
#start_url ⇒ Object
18 19 20 |
# File 'app/presenters/decidim/organization_presenter.rb', line 18 def start_url "/" end |
#translated_description ⇒ Object
10 11 12 |
# File 'app/presenters/decidim/organization_presenter.rb', line 10 def translated_description ActionView::Base.full_sanitizer.sanitize(translated_attribute(description)).html_safe end |