X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/31d76600cdb691251d0823cc6be601d958b4e1a4..c7d692a3f09d8116cc52591f8852c4e0d6e4ab3c:/apps/workbench/app/controllers/pipeline_instances_controller.rb diff --git a/apps/workbench/app/controllers/pipeline_instances_controller.rb b/apps/workbench/app/controllers/pipeline_instances_controller.rb index a7b9142f0d..26a9f85d4e 100644 --- a/apps/workbench/app/controllers/pipeline_instances_controller.rb +++ b/apps/workbench/app/controllers/pipeline_instances_controller.rb @@ -1,7 +1,11 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class PipelineInstancesController < ApplicationController - skip_before_filter :find_object_by_uuid, only: :compare - before_filter :find_objects_by_uuid, only: :compare - skip_around_filter :require_thread_api_token, if: proc { |ctrl| + skip_before_action :find_object_by_uuid, only: :compare + before_action :find_objects_by_uuid, only: :compare + skip_around_action :require_thread_api_token, if: proc { |ctrl| Rails.configuration.anonymous_user_token and 'show' == ctrl.action_name } @@ -63,7 +67,7 @@ class PipelineInstancesController < ApplicationController end def update - @updates ||= params[@object.class.to_s.underscore.singularize.to_sym] + @updates ||= params.to_unsafe_hash[@object.class.to_s.underscore.singularize.to_sym] if (components = @updates[:components]) components.each do |cname, component| if component[:script_parameters]