BigW Consortium Gitlab

koding_controller.rb 329 Bytes
Newer Older
1
class KodingController < ApplicationController
2
  before_action :check_integration!
3 4 5
  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