From 7a76b6d572f52fc23bd5d7e786ee53ed1f01a9bb Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Apr 2016 19:26:21 +0800 Subject: [PATCH] small fix --- app/models/patent.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/patent.rb b/app/models/patent.rb index fe05999..30603b4 100644 --- a/app/models/patent.rb +++ b/app/models/patent.rb @@ -88,7 +88,7 @@ class Patent fields_to_show.collect do |t| case t when "patent_title" - pd_data << {"data_title" => "" + (p.send(fs) rescue "") + ""} + pd_data << {"data_title" => "" + (p.send(t) rescue "") + ""} when "publish_date" pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")} when "application_date"