module Docs
Public Class Methods
route(router)
click to toggle source
# File lib/api_docs_engine/docs.rb, line 34 def route(router) router.instance_exec do root Docs.root_path resources :missing_docs, only: [:index] resources :page_categories, except: [:index, :show, :edit] resources :pages, except: [:index, :show] resources :page_categories, shallow: true, path: Docs.api_docs_prefix, only: [:edit] do resources :pages, only: [:index, :new, :create], path: "", path_names: { new: "new_page" } end resources :markdown, only: "create" end end
setup() { |self| ... }
click to toggle source
# File lib/api_docs_engine/docs.rb, line 30 def setup yield self end