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