Class: Brightcontent::PageBaseController
- Inherits:
-
BaseController
- Object
- BaseController
- Brightcontent::PageBaseController
- Includes:
- TheSortableTreeController::Rebuild
- Defined in:
- app/controllers/brightcontent/page_base_controller.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.inherited(subclass) ⇒ Object
6 7 8 9 |
# File 'app/controllers/brightcontent/page_base_controller.rb', line 6 def self.inherited(subclass) subclass.class_eval { per_page 0 } super end |
Instance Method Details
#form_fields ⇒ Object
11 12 13 |
# File 'app/controllers/brightcontent/page_base_controller.rb', line 11 def form_fields %w{name parent_id hidden body attachments} end |
#resource_class ⇒ Object
19 20 21 |
# File 'app/controllers/brightcontent/page_base_controller.rb', line 19 def resource_class Brightcontent.page_model end |
#sortable_model ⇒ Object
15 16 17 |
# File 'app/controllers/brightcontent/page_base_controller.rb', line 15 def sortable_model Brightcontent.page_model end |