blob: bb89f3090f9d8e79b1fceefcc40800dfe527005e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class KodingController < ApplicationController
before_action :check_integration!, :authenticate_user!, :reject_blocked!
layout 'koding'
def index
path = File.join(Rails.root, 'doc/integration/koding-usage.md')
@markdown = File.read(path)
end
private
def check_integration!
render_404 unless current_application_settings.koding_enabled?
end
end
|