Sha256: aee82fb030001a3ec44c464edb76c287ad5c7579ca4cf24b385f4f0c1aecfed3

Contents?: true

Size: 549 Bytes

Versions: 12

Compression:

Stored size: 549 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

    def sortable_model
      Brightcontent.page_model
    end

    def self.resource_class
      Brightcontent.page_model
    end

    protected

    def sortable_collection
      "brightcontent_pages"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
brightcontent-pages-2.3.4 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.3.3 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.3.2 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.3.1 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.3.0 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.2.2 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.2.1 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.2.0 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.1.5 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.1.4 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.1.3 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.1.2 app/controllers/brightcontent/page_base_controller.rb