From 175f05168c7ca6310df0de8ccb6f37315613c8f3 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 16:46:09 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index a010014..97abfb8 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -47,7 +47,6 @@ class PersonalJournalsController < ApplicationController end journal_papers_show_last = journal_papers_show[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count] journal_papers = journal_papers_show_last - journal_papers.total_pages = (journal_papers_temp.length / OrbitHelper.page_data_count.to_f).ceil else end journal_papers = JournalPaper.where(:is_hidden=>false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)