forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ordering issues with student waitlist rsvps
* student_waitlist_rsvps is now always ordered by waitlist_position * waitlist on the Event Show page shows the real waitlist_position instead of the fetched rsvp index (though they should now be the same) * Reload event in-between destroying an rsvp and reordering waitlist, otherwise the student_rsvps_count isn't reloaded and no-one is promoted * Don't use find_each in reorder_waitlist!, because it apparently doesn't respect order in Rails 4.1
- Loading branch information
1 parent
217b758
commit b3a7d8c
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters