fix book_type nil
This commit is contained in:
parent
7874c30149
commit
cbc46d3031
|
@ -6,7 +6,7 @@ class PersonalBooksController < ApplicationController
|
|||
"book_title" => book.create_link,
|
||||
"author" => book.authors,
|
||||
"year" => book.year,
|
||||
"book_paper_type" => book.book_type.title,
|
||||
"book_paper_type" => (book.book_type.title rescue nil),
|
||||
"link_to_show" => OrbitHelper.url_to_show(book.to_param)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue