BigW Consortium Gitlab

koding_controller.rb 368 Bytes
Newer Older
1 2 3 4 5
class KodingController < ApplicationController
  before_action :check_integration!, :authenticate_user!, :reject_blocked!
  layout 'koding'

  def index
6
    path = File.join(Rails.root, 'doc/user/project/koding.md')
7 8 9 10 11 12 13 14 15
    @markdown = File.read(path)
  end

  private

  def check_integration!
    render_404 unless current_application_settings.koding_enabled?
  end
end