summaryrefslogtreecommitdiff
path: root/app/controllers/koding_controller.rb
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