Sha256: 84ad5a4e2032c10ef0f22ed2f408f413a7ba2ed6376aebc5aa7f7043847ae230
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
# A presenter is a class representation of a view, which consolidates data from multiple models # Pages editing can be initiated from 3 different controllers, AnswerSheets for the initial load, # AnswerPages to AJAX load in another page, and (in BOAT) the ApplicationsController for multiple sheets. # Rather than duplicate code from controller to controller, each place can simply reference this Presenter. # We always need data to render the current page for editing. # On the initial load, we need data for the page list (sidebar). # On later page loads, we need to determine the "next page" which basically requires the page list again. module Fe class AnswerPagesPresenter < Presenter include Fe::AnswerPagesPresenterConcern end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe-0.0.3 | app/models/fe/answer_pages_presenter.rb |