From 19837e7ca70d7346b184dd1c28e42ee129dfa271 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 6 Jun 2016 17:14:39 +0800 Subject: [PATCH] fixed type --- app/views/admin/books/download_excel.xlsx.axlsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/books/download_excel.xlsx.axlsx b/app/views/admin/books/download_excel.xlsx.axlsx index 02119a6..a4844ff 100644 --- a/app/views/admin/books/download_excel.xlsx.axlsx +++ b/app/views/admin/books/download_excel.xlsx.axlsx @@ -70,7 +70,7 @@ wb = xlsx_package.workbook row << book.year row << book.language - row << book.book_types.map{|bpt| bpt.title}.join(", ") rescue "" + row << book.book_type.title rescue "" row << book.pages row << book.book_author_types.map{|bpt| bpt.title}.join(", ") rescue "" row << book.number_of_authors