Commit 0446d5b63dec2411b7d50380d50ce1e4ebcafd0f
Committed by
Thiago Kenji Okada
1 parent
db8ca2d8
Exists in
colab
and in
4 other branches
Missing method update on the compound metric class
signed-off-by: Thiago Kenji Okada <thiago.mast3r@gmail.com>
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
app/controllers/compound_metric_configurations_controller.rb
... | ... | @@ -20,7 +20,15 @@ class CompoundMetricConfigurationsController < BaseMetricConfigurationsControlle |
20 | 20 | end |
21 | 21 | |
22 | 22 | def update |
23 | - raise NotImplementedError | |
23 | + respond_to do |format| | |
24 | + edit | |
25 | + if @compound_metric_configuration.update(metric_configuration_params) | |
26 | + format.html { redirect_to mezuro_configuration_path(@compound_metric_configuration.configuration_id), notice: 'Compound Metric Configuration was successfully created.' } | |
27 | + format.json { head :no_content } | |
28 | + else | |
29 | + failed_action(format, 'edit') | |
30 | + end | |
31 | + end | |
24 | 32 | end |
25 | 33 | |
26 | 34 | protected | ... | ... |