forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
2e95361993
commit
dbe9f0fbba
|
@ -21,9 +21,9 @@ class PersonalJournalsController < ApplicationController
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
#if params.selectbox.nil?
|
#if params.selectbox.nil?
|
||||||
journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
# journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
||||||
journal_papers_count = journal_papers.count
|
# journal_papers_count = journal_papers.count
|
||||||
journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
|
# journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
|
||||||
#else
|
#else
|
||||||
journal_paper_list = []
|
journal_paper_list = []
|
||||||
journal_papers.each do |journal_paper|
|
journal_papers.each do |journal_paper|
|
||||||
|
|
Loading…
Reference in New Issue