builds_controller.rb 466 Bytes
Newer Older
Lin Jen-Shin's avatar
Lin Jen-Shin committed
1
class Projects::BuildsController < Projects::ApplicationController
2 3
  before_action :authorize_read_build!

Lin Jen-Shin's avatar
Lin Jen-Shin committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  def index
    redirect_to namespace_project_jobs_path(project.namespace, project)
  end

  def show
    redirect_to namespace_project_job_path(project.namespace, project, job)
  end

  def raw
    redirect_to raw_namespace_project_job_path(project.namespace, project, job)
  end

  private

  def job
    @job ||= project.builds.find(params[:id])
  end
end