Class: Www::BasePresenter

Inherits:
BasePresenter show all
Defined in:
app/presenters/www/base_presenter.rb

Overview

Presenter: base presenter.

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, #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.

Parameters:

  • model (Object)

    the wrapped model instance

  • view (Object, nil) (defaults to: nil)

    view context

  • options (Hash, nil) (defaults to: nil)

    passed through to #initialize

Options Hash (options):

  • current_account (Account)

    current account



8
9
10
11
# File 'app/presenters/www/base_presenter.rb', line 8

def initialize(model, view = nil, options = nil)
  @url_helper = Www::Router.new
  super
end