Class: Decidim::Accountability::ResultPresenter

Inherits:
ResourcePresenter
  • Object
show all
Includes:
ActionView::Helpers::UrlHelper
Defined in:
app/presenters/decidim/accountability/result_presenter.rb

Overview

Decorator for results

Instance Method Summary collapse

Instance Method Details

#resultObject



12
13
14
# File 'app/presenters/decidim/accountability/result_presenter.rb', line 12

def result
  __getobj__
end

#title(html_escape: false, all_locales: false) ⇒ Object

Render the result title

Returns a String.



19
20
21
22
23
# File 'app/presenters/decidim/accountability/result_presenter.rb', line 19

def title(html_escape: false, all_locales: false)
  return unless result

  super(result.title, html_escape, all_locales)
end