Update journal_papers_controller.rb

This commit is contained in:
chiu 2019-11-01 22:17:33 +08:00
parent fa512ef4e1
commit 4ec2479d21
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Admin::JournalPapersController < OrbitMemberController
def merge
@journals=JournalPaper.order_by(:year=>'desc').map{|value| value}.group_by{|v| [v[:paper_title],v[:journal_title]]}
@journals.each do |key,value|
if value.length==1
if value.length<=1
@journals.delete key
end
end