Class: Search::PresetJobPresenter

Inherits:
ServiceJobPresenter
  • Object
show all
Defined in:
app/presenters/search/preset_job_presenter.rb

Overview

Row presenter for PresetJobSearch — renders the cells in the CRM Smart PreSet
search/results table. Wraps a ViewServiceJob projection rather than a
fully-loaded PresetJob so the search grid stays light.

Direct Known Subclasses

PresetJobTextPresenter

Instance Method Summary collapse

Instance Method Details

Linked preset job reference number → preset job show page.

Returns:

  • (ActiveSupport::SafeBuffer)


10
11
12
# File 'app/presenters/search/preset_job_presenter.rb', line 10

def job_link
  h.link_to r.reference_number || 'Not Set Yet', h.preset_job_path(r)
end