Update personal_journals_controller.rb

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

View File

@ -1,6 +1,7 @@
class PersonalJournalsController < ApplicationController class PersonalJournalsController < ApplicationController
def index def index
ENV['all_root'] = Rails.root ENV['all_root'] = Rails.root
puts ENV['all_root']
params = OrbitHelper.params params = OrbitHelper.params
page_data_count = OrbitHelper.page_data_count 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) journal_papers = JournalPaper.where(is_hidden: false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(page_data_count)