Sha256: 7e5beea1beacf078af0616539c0e0fc47d2787b39bd8656339f088e9903f8593
Contents?: true
Size: 648 Bytes
Versions: 58
Compression:
Stored size: 648 Bytes
Contents
require_dependency "coalescing_panda/application_controller" module CoalescingPanda class CanvasBatchesController < ApplicationController def show @batch = CanvasBatch.find(params[:id]) render @batch end def retrigger @batch = CanvasBatch.find(params[:id]) @batch.status = 'Queued' @batch.save worker = CoalescingPanda::Workers::CourseMiner.new(@batch.context, @batch.options) session[:canvas_batch_id] = worker.batch.id worker.start(true) redirect_to :back end def clear_batch_session session[:canvas_batch_id] = nil render nothing: true end end end
Version data entries
58 entries across 58 versions & 1 rubygems