blob: 745abf3c0f5d294813f73944ab85d23aa4478e00 (
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 Gitlab::CurrentSettings.koding_enabled?
end
end
|