Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 10:07:15 +08:00
parent 1b4f589d41
commit 978efa48c9
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ class PersonalJournalsController < ApplicationController
journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
journal_papers_show = journal_papers_temp.select {|value| value[params[:selectbox]].include? params[:keywords]}
{
"journal_papers" => journal_paper_list,
"headers" => "headers",
"extras" => {"widget-title" => "module_name.journal_paper"},
"total_pages" => 1
"choice" => 1
"all" => journal_papers_show
}
else