Update personal_books_controller.rb

add rescue
This commit is contained in:
chiu 2019-08-19 14:23:57 +08:00
parent 3d6f57086b
commit 823feb3f6b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class PersonalBooksController < ApplicationController
when "language"
t << {"value" => (!book.language.nil? ? t("#{book.language}") : "")}
else
t << {"value" => book.send(fs)}
t << {"value" => (book.send(fs) rescue "")}
end
end
book_list << {"books" => t}