Fix bug.
This commit is contained in:
parent
547882b134
commit
523af13e05
|
@ -11,7 +11,7 @@ class FaqsController < ApplicationController
|
||||||
qa_files = qa.qa_files.map do |qa_file|
|
qa_files = qa.qa_files.map do |qa_file|
|
||||||
{
|
{
|
||||||
"file_url" => qa_file.file.url,
|
"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
|
end
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue