Update personal_journals_controller.rb
This commit is contained in:
parent
9ca1d8b93a
commit
cbf1c8cdbb
|
@ -100,7 +100,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
||||||
"url" => "/"+params[:locale]+params[:url],
|
"url" => "/"+params[:locale]+params[:url],
|
||||||
"all" => journal_papers_show_last,
|
"all" => journal_papers_show_last,
|
||||||
"all_n" => JournalPaper.where(:is_hidden=>false).take(100).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] }.select {|value| value.paper_title.include? "1"}
|
"all_n" => JournalPaper.where(:is_hidden=>false).take(100).select {|value| value.paper_title.include? "1"}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue