class ProjectsController < WithCatalogueSectionsController
  def index
    @projects = Project.visible_to_user.select([:id, :customer, :completed_at, :title, :description]).page(params[:page]).per(10)
  end

  def show
    @project = Project.visible_to_user.find(params[:id])
  end
end
