Class: Www::BasePresenter
- Inherits:
-
BasePresenter
- Object
- SimpleDelegator
- BasePresenter
- Www::BasePresenter
- Defined in:
- app/presenters/www/base_presenter.rb
Direct Known Subclasses
AuthorPresenter, CollectionPagePresenter, CustomMatsPresenter, FloorPlanDisplayPresenter, ImagePresenter, ProductCatalogPresenter, ProductLinePresenter, SupportArticlePresenter, SupportItemPresenter, SupportProductLinePresenter, TowelWarmersPresenter
Instance Attribute Summary
Attributes inherited from BasePresenter
#current_account, #options, #url_helper
Instance Method Summary collapse
-
#initialize(model, view = nil, options = nil) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
Methods inherited from BasePresenter
#can?, #capture, #concat, #content_tag, #fa_icon, #h, #link_to, #number_to_currency, #present, presents, #r, #safe_present, #simple_format, #u
Constructor Details
#initialize(model, view = nil, options = nil) ⇒ BasePresenter
Returns a new instance of BasePresenter.
3 4 5 6 |
# File 'app/presenters/www/base_presenter.rb', line 3 def initialize(model, view = nil, = nil) @url_helper = Www::Router.new super end |