This commit is contained in:
BoHung Chiu 2021-03-23 16:36:12 +08:00
parent 547882b134
commit 523af13e05
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class FaqsController < ApplicationController
qa_files = qa.qa_files.map do |qa_file|
{
"file_url" => qa_file.file.url,
"file_title" => qa_file.title.blank? ? File.basename(qa_file["file"])
"file_title" => (qa_file.title.blank? ? File.basename(qa_file["file"]) : qa_file.title)
}
end
{