BathHacked/energy-sparks

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

Summary

Maintainability
A
0 mins
Test Coverage
module Schools
  class BenchmarkResultsController < ApplicationController
    load_and_authorize_resource :school

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