Update personal_journals_controller.rb
This commit is contained in:
parent
1d0de37748
commit
09bb492e83
|
@ -20,11 +20,11 @@ class PersonalJournalsController < ApplicationController
|
|||
"paper_title"
|
||||
]
|
||||
end
|
||||
#if params.selectbox !=nil
|
||||
# journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
||||
# journal_papers_count = journal_papers.count
|
||||
# journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
|
||||
#else
|
||||
if params[:selectbox] !=nil
|
||||
journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
||||
journal_papers_count = journal_papers.count
|
||||
journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
|
||||
else
|
||||
journal_paper_list = []
|
||||
journal_papers.each do |journal_paper|
|
||||
t = []
|
||||
|
@ -48,7 +48,7 @@ class PersonalJournalsController < ApplicationController
|
|||
end
|
||||
journal_paper_list << {"jps" => t}
|
||||
end
|
||||
#end
|
||||
end
|
||||
headers = []
|
||||
choice_show = []
|
||||
fields_to_show.each do |fs|
|
||||
|
|
Loading…
Reference in New Issue