BathHacked/energy-sparks

View on GitHub
app/controllers/schools/alerts_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
module Schools
  class AlertsController < ApplicationController
    load_and_authorize_resource :school

    def show
      @alert = Alert.find(params[:id])
      authorize! :read, @alert
    end
  end
end