diff --git a/app/models/research.rb b/app/models/research.rb index 46b083a..1d7b7e3 100644 --- a/app/models/research.rb +++ b/app/models/research.rb @@ -74,7 +74,7 @@ class Research pd_data = [] fields_to_show.collect do |t| if t == "research_title" - pd_data << { "data_title" => "#{p.send(t)}" } + pd_data << { "data_title" => "#{p.send(t)}" } elsif t == "research_category" pd_data << {"data_title" => (p.research_category.title rescue "")} else @@ -107,17 +107,17 @@ class Research self.research_files.each do |research_file| url = research_file.file.url title = (research_file.title.blank? ? File.basename(research_file.file.path) : research_file.title) - files << "