Class: Super::Controls

Inherits:
Object
  • Object
show all
Includes:
Optional, Steps, View
Defined in:
lib/super/controls.rb,
lib/super/pagination.rb,
lib/super/controls/view.rb,
lib/super/controls/steps.rb,
lib/super/controls/optional.rb

Overview

The base Controls class. Most parts of Super can be configured by customizing its methods.

Defined Under Namespace

Modules: Optional, Steps, View

Instance Method Summary collapse

Methods included from View

#edit_view, #index_view, #new_view, #show_view

Methods included from Steps

#apply_queries, #build_record, #build_record_with_params, #destroy_record, #initialize_filter_form, #initialize_pagination, #initialize_query_form, #initialize_sort_form, #load_record, #load_records, #paginate_records, #save_record, #update_record

Methods included from Optional

#collection_actions, #default_sort, #display_schema, #filter_schema, #filters_enabled?, #form_schema, #member_actions, #permitted_params, #records_per_page, #scope, #sort_enabled?, #sortable_columns, #title

Instance Method Details

#modelActiveRecord::Base

Specifies the model. This is a required method

Returns:

  • (ActiveRecord::Base)

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/super/controls.rb', line 18

def model
  raise NotImplementedError
end