We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6758b9 + 2666e60 commit 2736bcdCopy full SHA for 2736bcd
app/controllers/proposals_controller.rb
@@ -8,7 +8,7 @@ class ProposalsController < ApplicationController
8
decorates_assigned :proposal
9
10
def index
11
- proposals = current_user.proposals.decorate.group_by {|p| p.event}
+ proposals = current_user.proposals.order(event_id: :desc).decorate.group_by {|p| p.event}
12
invitations = current_user.pending_invitations.decorate.group_by {|inv| inv.proposal.event}
13
events = (proposals.keys | invitations.keys).uniq
14
0 commit comments