Sha256: 8dc659980270120730b3adbfd2dcc432ce620a50af44ec092114359b811a1556

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

module Brightcontent
  class PageBaseController < BaseController
    include TheSortableTreeController::Rebuild
    helper TheSortableTree::Engine.helpers

    def self.inherited(subclass)
      subclass.class_eval { per_page 0 }
      super
    end

    def form_fields
      %w{name parent_id hidden body attachments}
    end

    protected

    def sortable_model
      Brightcontent::Page
    end

    def sortable_collection
      "brightcontent_pages"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brightcontent-pages-2.0.31 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.0.30 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.0.29 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.0.28 app/controllers/brightcontent/page_base_controller.rb