forked from saurabh/personal-book
Update book.rb
This commit is contained in:
parent
9cc10eaa64
commit
40f9361ea4
|
@ -118,7 +118,7 @@ class Book
|
|||
when "author_type"
|
||||
pd_data << {"data_title" => (p.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
||||
when "language"
|
||||
pd_data << {"data_title" => (I18n.t("personal_book.#{p.language}") if !p.language.nil? rescue "")}
|
||||
pd_data << {"data_title" => (I18n.t("#{p.language}") if !p.language.nil? rescue "")}
|
||||
else
|
||||
pd_data << { "data_title" => p.send(t) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue