diff --git a/app/models/project.rb b/app/models/project.rb index 4d292fe..6933baf 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -86,7 +86,7 @@ class Project pd_data = [] fields_to_show.collect do |t| if t == "project_title" - pd_data << { "data_title" => "#{p.send(t)}" } + pd_data << { "data_title" => "#{p.send(t)}" } elsif t == "period" date = p.duration pd_data << { "data_title" => date } @@ -134,18 +134,18 @@ class Project self.project_files.each do |project_file| url = project_file.file.url title = ((project_file.title.blank? ? File.basename(project_file.file.path) : project_file.title) rescue "") - files << (url.nil? ? "" : "
  • #{title}
  • ") + files << (url.nil? ? "" : "
  • #{title}
  • ") end value = files.join("") when "url" - value = self.url.to_s.blank? ? "" : "#{self.url}" + value = self.url.to_s.blank? ? "" : "#{self.url}" when "participator" value = get_authors_show(self) else 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,