Update personal_journals_controller.rb
This commit is contained in:
parent
fd8ebb2e1b
commit
c3a12a33f1
|
@ -76,7 +76,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
journal_papers1 = Mongoid::Sessions.default[:journal_papers].find()
|
journal_papers1 = Mongoid::Sessions.default[:journal_papers].find()
|
||||||
journal_papers_count = journal_papers1.count
|
journal_papers_count = journal_papers1.count
|
||||||
journal_papers_temp = journal_papers1.take(journal_papers_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,
|
"journal_papers" => journal_paper_list,
|
||||||
"headers" => headers,
|
"headers" => headers,
|
||||||
|
|
Loading…
Reference in New Issue