app/controllers/site_controller.rb
# 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