diff --git a/app/mailers/assignment_response_mailer.rb b/app/mailers/assignment_response_mailer.rb index 3e9e9ad..956927c 100644 --- a/app/mailers/assignment_response_mailer.rb +++ b/app/mailers/assignment_response_mailer.rb @@ -6,7 +6,7 @@ def notify_user_response(assignment_response) return if assignment_response.blank? assignment_response.assignment_question_responses.each do |response| - attachments[response.file.original_filename] = response.file.download + attachments[response.file.original_filename] = response.file.read end mail(