Welcome to mirror list, hosted at ThFree Co, Russian Federation.

koding_controller.rb « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6b1e64ce8194db812bced74c816d40e34889cdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class KodingController < ApplicationController
  before_action :check_integration!
  layout 'koding'

  def index
    path = File.join(Rails.root, 'doc/user/project/koding.md')
    @markdown = File.read(path)
  end

  private

  def check_integration!
    render_404 unless current_application_settings.koding_enabled?
  end
end