Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-21 12:24:38 +08:00
parent 94dece3e4f
commit 49479d4587
1 changed files with 1 additions and 0 deletions

View File

@ -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)