Class: Viewable::FormPresenter

Inherits:
ViewPresenter show all
Defined in:
app/presenters/viewable/form_presenter.rb

Instance Attribute Summary

Attributes inherited from BasePresenter

#context, #model

Instance Method Summary collapse

Methods inherited from ViewPresenter

#add_link

Methods inherited from ViewablePresenter

#edit_link, #li_sortable_tag

Methods inherited from BasePresenter

#method_missing, #respond_to?

Constructor Details

#initialize(model, context) ⇒ FormPresenter

Returns a new instance of FormPresenter.



3
4
5
6
7
8
# File 'app/presenters/viewable/form_presenter.rb', line 3

def initialize(model, context)
  super
  if m.not_static?
    h.cms_form_instance = m.fetch_row(h.cms_form_instance)
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BasePresenter