added scope for index
This commit is contained in:
parent
b4309349fa
commit
b289050800
|
@ -1,7 +1,7 @@
|
|||
class PersonalJournalsController < ApplicationController
|
||||
def index
|
||||
params = OrbitHelper.params
|
||||
journal_papers = JournalPaper.where(:is_hidden=>false).order_by(:year=>'desc').page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
|
||||
journal_papers = JournalPaper.where(:is_hidden=>false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
|
||||
page = Page.where(:page_id => params[:page_id]).first rescue nil
|
||||
if page.custom_string_field == "table"
|
||||
fields_to_show = page.custom_array_field rescue []
|
||||
|
|
Loading…
Reference in New Issue