From 7f5e34934fe1c574aa612a9873a494311fc7858e Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 14 Aug 2019 15:16:02 +0800 Subject: [PATCH] Update personal_books_controller.rb --- app/controllers/personal_books_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_books_controller.rb b/app/controllers/personal_books_controller.rb index 91e1f01..74db8ea 100644 --- a/app/controllers/personal_books_controller.rb +++ b/app/controllers/personal_books_controller.rb @@ -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