BathHacked/energy-sparks

View on GitHub
app/controllers/schools/advice/electricity_out_of_hours_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Schools
  module Advice
    class ElectricityOutOfHoursController < BaseOutOfHoursController
      before_action :load_dashboard_alerts, only: [:insights, :analysis]

      private

      def fuel_type
        :electricity
      end

      def advice_page_key
        :electricity_out_of_hours
      end
    end
  end
end