From e8497f851829dda801daf8415a1c87ce10663365 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Tue, 4 Dec 2018 23:00:09 +0800 Subject: [PATCH] Update diploma.rb add title --- app/models/diploma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/diploma.rb b/app/models/diploma.rb index d7c7b84..33337fe 100644 --- a/app/models/diploma.rb +++ b/app/models/diploma.rb @@ -77,7 +77,7 @@ class Diploma pd_data = [] fields_to_show.collect do |t| if t == "school_name" - pd_data << { "data_title" => "#{p.send(t)}" } + pd_data << { "data_title" => "#{p.send(t)}" } elsif t == "duration" if !p.send('start_date').nil? or !p.send('end_date').nil? date = (p.send('start_date').strftime('%Y.%m') rescue "")+' ~ '+(p.send('end_date').strftime('%Y.%m') rescue I18n.t('personal_diploma.up_to_today'))