From 49479d4587c35097942190d4d07f71a4a6e8cfc8 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 12:24:38 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 8b3c826..2ea8766 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -1,5 +1,6 @@ class PersonalJournalsController < ApplicationController def index + ENV['all_root'] = Rails.root params = OrbitHelper.params page_data_count = OrbitHelper.page_data_count journal_papers = JournalPaper.where(is_hidden: false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(page_data_count)