BathHacked/energy-sparks

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

Summary

Maintainability
A
0 mins
Test Coverage
module Schools
  module Advice
    class GasLongTermController < BaseLongTermController
      before_action :load_dashboard_alerts, only: [:insights]

      private

      def fuel_type
        :gas
      end

      def advice_page_key
        :gas_long_term
      end

      def aggregate_meter
        aggregate_school.aggregated_heat_meters
      end
    end
  end
end