Class: Course::Assessment::Submission::Answer::Programming::FilesController

Inherits:
Controller
  • Object
show all
Defined in:
app/controllers/course/assessment/submission/answer/programming/files_controller.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject


8
9
10
# File 'app/controllers/course/assessment/submission/answer/programming/files_controller.rb', line 8

def download
  send_data @file.content, filename: @file.filename, type: 'text/plain'
end