From 9301c212d039a89d71a4e11b432cc68cf8a1e204 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 27 Nov 2020 14:46:35 +0800 Subject: [PATCH] Fix a tag bug. --- app/models/experience.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/experience.rb b/app/models/experience.rb index e47bc24..9bdc5ff 100644 --- a/app/models/experience.rb +++ b/app/models/experience.rb @@ -73,7 +73,7 @@ class Experience pd_data = [] fields_to_show.collect do |t| if t == "organizationt_title" - 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? @@ -124,7 +124,7 @@ class Experience value = self.send(field) rescue "" end - value = (value =~ /\A#{URI::regexp(['http', 'https'])}\z/) ? "#{value}" : value + value = (value =~ /\A#{URI::regexp(['http', 'https'])}\z/) ? "#{value}" : value { "key"=>field,