Update personal_books_controller.rb

This commit is contained in:
chiu 2019-08-14 15:16:02 +08:00
parent 534100fd7c
commit 7f5e34934f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class PersonalBooksController < ApplicationController
when "author_type"
t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
when "language"
t << {"value" => (!book.language.nil? ? I18n.t("personal_book.#{book.language}") : "")}
t << {"value" => (!book.language.nil? ? I18n.t("personal_book.#{book.language}") : "" rescue "")}
else
t << {"value" => book.send(fs)}
end