From bcbfd9710682d8ff48a1308b52f0006c6f5e3a5f Mon Sep 17 00:00:00 2001 From: wmcheng Date: Tue, 4 Dec 2018 22:55:39 +0800 Subject: [PATCH] Update honor.rb add title --- app/models/honor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/honor.rb b/app/models/honor.rb index eeea612..17fb646 100644 --- a/app/models/honor.rb +++ b/app/models/honor.rb @@ -75,7 +75,7 @@ class Honor pd_data = [] fields_to_show.collect do |t| if t == "award_name" - pd_data << { "data_title" => "#{p.send(t)}" } + pd_data << { "data_title" => "#{p.send(t)}" } elsif t == "honor_type" pd_data << {"data_title" => (p.honor_type.title rescue "")} elsif t == "award_date"