From dbe9f0fbba19b012e6cde220cec1dbd759a2c01a Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 09:36:11 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 93a8318..06ab60d 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -21,9 +21,9 @@ class PersonalJournalsController < ApplicationController ] 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) + # 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|