Commit 4e2da6de676ddeb0fc6928231233493cb8f30b23
1 parent
1daafa62
Exists in
colab
and in
4 other branches
Fix CompoundMetricConfiguration params filtering
Now scope has a hash with key type.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/compound_metric_configurations_controller.rb
... | ... | @@ -8,7 +8,7 @@ class CompoundMetricConfigurationsController < BaseMetricConfigurationsControlle |
8 | 8 | end |
9 | 9 | |
10 | 10 | def metric_configuration_params |
11 | - params.require(:metric_configuration).permit(:reading_group_id, :weight, :metric => [:name, :description, :script, :scope, :code]) | |
11 | + params.require(:metric_configuration).permit(:reading_group_id, :weight, :metric => [:name, :description, :script, :code, :scope => [:type]]) | |
12 | 12 | end |
13 | 13 | |
14 | 14 | def set_metric_configurations | ... | ... |