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? ? "" : "