2016-09-13 17:45:13 +05:30
|
|
|
class KodingController < ApplicationController
|
2017-08-17 22:00:37 +05:30
|
|
|
before_action :check_integration!
|
2016-09-13 17:45:13 +05:30
|
|
|
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
|