Commit 2f185be5b5767db41561cb6cc96600ba0c9bd069
Committed by
Rafael Manzo
1 parent
aaae2246
Exists in
colab
and in
4 other branches
Skip coverage check for metric_configuration_params
The code is pretty straightforward, just raising an Error in order to force subclasses to implement this. Signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/controllers/base_metric_configurations_controller.rb
@@ -89,9 +89,12 @@ class BaseMetricConfigurationsController < ApplicationController | @@ -89,9 +89,12 @@ class BaseMetricConfigurationsController < ApplicationController | ||
89 | Rails.cache.delete("#{@kalibro_configuration.id}_hotspot_metric_configurations") | 89 | Rails.cache.delete("#{@kalibro_configuration.id}_hotspot_metric_configurations") |
90 | end | 90 | end |
91 | 91 | ||
92 | + # Notice: If you add some logic to this method, remove the :nocov: below | ||
93 | + # :nocov: | ||
92 | def metric_configuration_params | 94 | def metric_configuration_params |
93 | raise NotImplementedError | 95 | raise NotImplementedError |
94 | end | 96 | end |
97 | + # :nocov: | ||
95 | 98 | ||
96 | def set_kalibro_configuration! | 99 | def set_kalibro_configuration! |
97 | @kalibro_configuration = KalibroConfiguration.find params[:kalibro_configuration_id].to_i | 100 | @kalibro_configuration = KalibroConfiguration.find params[:kalibro_configuration_id].to_i |