-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #510 from ChicagoWorldcon/staging
1.6.2
- Loading branch information
Showing
32 changed files
with
767 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Produce a schedule suitable for Conclar | ||
class ScheduleController < ApplicationController | ||
skip_before_action :check_up, :authenticate_person!, only: [:index, :participants] | ||
|
||
def index | ||
sessions = ReportsService.scheduled_sessions | ||
|
||
render json: ActiveModel::Serializer::CollectionSerializer.new( | ||
sessions, | ||
serializer: Conclar::SessionSerializer | ||
), | ||
content_type: 'application/json' | ||
end | ||
|
||
def participants | ||
participants = ReportsService.scheduled_people | ||
|
||
render json: ActiveModel::Serializer::CollectionSerializer.new( | ||
participants, | ||
serializer: Conclar::ParticipantSerializer | ||
), | ||
content_type: 'application/json' | ||
end | ||
end |
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
Oops, something went wrong.