app/controllers/hotspot_metric_configurations_controller.rb
class HotspotMetricConfigurationsController < BaseMetricConfigurationsController
skip_before_action :set_reading_group!
def metric_configuration_params
# Hotspot metric configurations don't accept any parameters on creation
# But we must make that explicit as the method isn't implemented in the parent class
params.permit
end
def render_failure_html(format)
format.html { redirect_to kalibro_configuration_path(@kalibro_configuration.id) }
end
protected
def metric_type
'HotspotMetricSnapshot'
end
end