clarion/app/controllers/api/schedules_controller.rb

10 lines
334 B
Ruby
Raw Normal View History

2024-10-03 23:24:41 +03:00
class Api::SchedulesController < Api::ApplicationController
include ::CurrentConferenceAssigning
include ::PublicApiExposing
before_action :require_current_conference!
def show
@halls = Conference.last.halls.includes(:translations, slots: {approved_event: [:participants_with_personal_profiles, :proposition]})
end
end