diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 0152181..fdabd5e 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -159,13 +159,13 @@ class JournalPaper # member_data.to_json # end - # def save_journal_paper_files - # self.journal_paper_files.each do |t| - # if t.should_destroy - # t.destroy - # end - # end - # end + def save_journal_paper_files + self.journal_paper_files.each do |t| + if t.should_destroy + t.destroy + end + end + end # def save_journal_paper_authors # self.journal_paper_authors.each do |t|