Class: Brightcontent::PageBaseController

Inherits:
BaseController
  • Object
show all
Includes:
TheSortableTreeController::Rebuild
Defined in:
app/controllers/brightcontent/page_base_controller.rb

Direct Known Subclasses

PagesController

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_fieldsObject


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_classObject


19
20
21
# File 'app/controllers/brightcontent/page_base_controller.rb', line 19

def resource_class
  Brightcontent.page_model
end

#sortable_modelObject


15
16
17
# File 'app/controllers/brightcontent/page_base_controller.rb', line 15

def sortable_model
  Brightcontent.page_model
end