From 5dccdbab17db473169d4625765aeeb9f9d0dcbec Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Fri, 15 Mar 2019 11:12:10 +0100 Subject: [PATCH] fixup! Fix failing tests --- app/controllers/experiments_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index c78b8a053..ef8fb7c5b 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -108,13 +108,13 @@ class ExperimentsController < ApplicationController experiment_annotation_notification(old_text) - activity_type_of = if experiment_params[:archived] == 'false' - :restore_experiment - else - :edit_experiment - end + activity_type = if experiment_params[:archived] == 'false' + :restore_experiment + else + :edit_experiment + end Activities::CreateActivityService - .call(activity_type: activity_type_of, + .call(activity_type: activity_type, owner: current_user, subject: @experiment, project: @experiment.project,