Update personal_books_controller.rb
This commit is contained in:
parent
aa0febbd30
commit
01c1e7a076
|
@ -68,7 +68,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}") : "" rescue "")}
|
||||
t << {"value" => (!book.language.nil? ? t("personal_book.#{book.language}") : "" rescue "")}
|
||||
else
|
||||
t << {"value" => book.send(fs)}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue