forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
9fbfc4641f
commit
6ea6e8c3ab
|
@ -50,6 +50,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
journal_papers.total_pages = (journal_papers_temp.length / OrbitHelper.page_data_count.to_f).ceil
|
journal_papers.total_pages = (journal_papers_temp.length / OrbitHelper.page_data_count.to_f).ceil
|
||||||
else
|
else
|
||||||
end
|
end
|
||||||
|
journal_papers = JournalPaper.where(:is_hidden=>false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
|
||||||
journal_paper_list = []
|
journal_paper_list = []
|
||||||
journal_papers.each do |journal_paper|
|
journal_papers.each do |journal_paper|
|
||||||
t = []
|
t = []
|
||||||
|
|
Loading…
Reference in New Issue