Class: Search::BudgetPresenter

Inherits:
BasePresenter show all
Includes:
Presenters::Timeable
Defined in:
app/presenters/search/budget_presenter.rb

Overview

Row presenter for ViewBudget — renders the cells in the CRM budget
search/results table.

Instance Attribute Summary

Attributes inherited from BasePresenter

#current_account, #options, #url_helper

Instance Method Summary collapse

Methods inherited from BasePresenter

#can?, #capture, #concat, #content_tag, #fa_icon, #h, #initialize, #link_to, #number_to_currency, #present, presents, #r, #safe_present, #simple_format, #u

Constructor Details

This class inherits a constructor from BasePresenter

Instance Method Details

Linked budget id → budget show page.

Returns:

  • (ActiveSupport::SafeBuffer)


13
14
15
# File 'app/presenters/search/budget_presenter.rb', line 13

def budget_link
  h.link_to(r.id, h.budget_path(r.id))
end