education/classroom

View on GitHub
app/controllers/site_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class SiteController < ApplicationController
  layout :none

  before_action :authorize_access

  def boom_town
    raise "BOOM"
  end

  def boom_sidekiq
    BoomJob.perform_later
    head :ok
  end

  private

  def authorize_access
    not_found unless current_user.try(:staff?)
  end
end