sort conference and type

This commit is contained in:
Rueshyna 2013-02-25 11:43:02 +08:00 committed by chris
parent 522e0481e1
commit 6f599bb95d
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class Panel::PersonalConference::Desktop::ConferencePagesController < Applicatio
def conference_type
conference_types = ConferencePaperType.all
all_conference_lists = WritingConference.where(create_user_id: current_user.id)
all_conference_lists = all_conference_lists.asc(:conference_title)
all_conference_lists = all_conference_lists.map do |j|
[ j.conference_title,
j.conference_paper_type_ids.map do |type|