rubycentral/cfp-app

View on GitHub
app/controllers/schedule_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ScheduleController < ApplicationController
  include WebsiteScheduleHelper
  after_action :set_cache_headers, only: :show

  decorates_assigned :schedule, with: Staff::TimeSlotDecorator

  def show
    @schedule = current_website.time_slots.grid_order
      .includes(:room, program_session: { proposal: {speakers: :user}})
    render layout: "themes/#{current_website.theme}"
  end
end