Update journal_papers_controller.rb
This commit is contained in:
parent
4ec2479d21
commit
208c1b2d9b
|
@ -54,8 +54,12 @@ class Admin::JournalPapersController < OrbitMemberController
|
|||
@journals[key].delete key1
|
||||
end
|
||||
end
|
||||
if @journals[key].length==0
|
||||
@journals.delete key
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
def index
|
||||
@writing_journals = JournalPaper.order_by(:year=>'desc').page(params[:page]).per(10)
|
||||
|
|
Loading…
Reference in New Issue