20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'app/controllers/concerns/sufia/batch_controller_behavior.rb', line 20
def update
authenticate_user!
@batch = Batch.find_or_create(params[:id])
@batch.status = ["processing"]
@batch.save
Sufia.queue.push(batch_update_job)
flash[:notice] = 'Your files are being processed by ' + t('sufia.product_name') + ' in the background. The metadata and access controls you specified are being applied. Files will be marked <span class="label label-danger" title="Private">Private</span> until this process is complete (shouldn\'t take too long, hang in there!). You may need to refresh your dashboard to see these updates.'
if uploading_on_behalf_of? @batch
redirect_to sufia.dashboard_shares_path
else
redirect_to sufia.dashboard_files_path
end
end
|