From cb715732e7d19372ce6a3526b0e0ef8600e04ad6 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Tue, 4 Dec 2018 22:53:56 +0800 Subject: [PATCH] Update research.rb add title --- app/models/research.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/research.rb b/app/models/research.rb index af2e972..032920c 100644 --- a/app/models/research.rb +++ b/app/models/research.rb @@ -74,7 +74,7 @@ class Research pd_data = [] fields_to_show.collect do |t| if t == "research_title" - pd_data << { "data_title" => "#{p.send(t)}" } + pd_data << { "data_title" => "#{p.send(t)}" } elsif t == "research_category" pd_data << {"data_title" => (p.research_category.title rescue "")} else