sort conference and type

This commit is contained in:
Rueshyna committed 2013-02-25 11:46:20 +08:00
1 parent 6929d30b5d
commit 8b0ffe747c
1 file changed
+1
@@ -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|