WikiEducationFoundation/WikiEduDashboard

View on GitHub
app/controllers/weeks_controller.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true
require "#{Rails.root}/lib/alerts/check_timeline_alert_manager"
class WeeksController < ApplicationController
  respond_to :json

  def destroy
    week = Week.find(params[:id]).destroy
    course = week.course
    CheckTimelineAlertManager.new(course)
    render plain: '', status: :ok
  end
end