Class: Search::SupplierItemPresenter
- Inherits:
-
BasePresenter
- Object
- SimpleDelegator
- BasePresenter
- Search::SupplierItemPresenter
- Includes:
- Presenters::Timeable
- Defined in:
- app/presenters/search/supplier_item_presenter.rb
Direct Known Subclasses
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
#active ⇒ Object
11 12 13 |
# File 'app/presenters/search/supplier_item_presenter.rb', line 11 def active h.check_or_cross r.active end |
#item_link ⇒ Object
6 7 8 9 |
# File 'app/presenters/search/supplier_item_presenter.rb', line 6 def item_link return unless r.has_columns?(:sku, :item_id) h.link_to r.sku, h.item_path(r.item_id) end |