Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 10:13:13 +08:00
parent fd8ebb2e1b
commit c3a12a33f1
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class PersonalJournalsController < ApplicationController
journal_papers1 = Mongoid::Sessions.default[:journal_papers].find()
journal_papers_count = journal_papers1.count
journal_papers_temp = journal_papers1.take(journal_papers_count)
journal_papers_show = journal_papers_temp.select {|value| value["paper_title"].include? "1"}
journal_papers_show = journal_papers_temp.select {|value| value["paper_title"][OrbitHelper.params[:locale]].include? "1"}
{
"journal_papers" => journal_paper_list,
"headers" => headers,