Sha256: ae792cc9d76f9cdc1387823f33dbb6d70c1bdac333300b28acf250723f434c07

Contents?: true

Size: 544 Bytes

Versions: 10

Compression:

Stored size: 544 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 resource_class
      Brightcontent.page_model
    end

    protected

    def sortable_collection
      "brightcontent_pages"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brightcontent-pages-2.6.0 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.5.1 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.5.0 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.6 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.5 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.4 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.3 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.2 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.1 app/controllers/brightcontent/page_base_controller.rb
brightcontent-pages-2.4.0 app/controllers/brightcontent/page_base_controller.rb