Update personal_books_controller.rb

This commit is contained in:
chiu 2019-08-14 15:08:27 +08:00
parent d03e62138f
commit 44b89ad43c
1 changed files with 1 additions and 1 deletions

View File

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