Update personal_books_controller.rb
This commit is contained in:
parent
2c1e8bdde2
commit
534100fd7c
|
@ -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" => (!book.language.nil? ? t("personal_book.#{book.language}") : "")}
|
t << {"value" => (!book.language.nil? ? I18n.t("personal_book.#{book.language}") : "")}
|
||||||
else
|
else
|
||||||
t << {"value" => book.send(fs)}
|
t << {"value" => book.send(fs)}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue