Sha256: 2625991f9c823ff25903fe790704a06309a552e5bca79197c3debf35b20d130a
Contents?: true
Size: 751 Bytes
Versions: 17
Compression:
Stored size: 751 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
17 entries across 17 versions & 1 rubygems