From 4c89ab3a62482a65e201c859cc00ef6ef0fbd8b3 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 25 Mar 2016 01:36:23 +0800 Subject: [PATCH] small fix --- app/models/book.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/book.rb b/app/models/book.rb index a038946..47f0045 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -100,7 +100,7 @@ class Book pd_data = [] fields_to_show.collect do |t| - if page.custom_string_field == "table" + if !page.nil? && page.custom_string_field == "table" case t when "book_title" pd_data << { "data_title" => "#{p.book_title}" }