mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 22:05:13 +00:00
23 lines
369 B
Ruby
23 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DocsController < ApplicationController
|
|
include HighVoltage::StaticPage
|
|
|
|
skip_before_action :require_authentication!
|
|
|
|
before_action :load_docs_navigation
|
|
|
|
def show
|
|
@doc = DocPage.find(params[:id])
|
|
end
|
|
|
|
private
|
|
|
|
def load_docs_navigation
|
|
@docs = DocPage.all
|
|
end
|
|
|
|
def page_finder_factory
|
|
DocPage
|
|
end
|
|
end
|