From b0226ac8d92d79984e77147f71c6e39f0937a2ce Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 17 Nov 2022 08:35:01 +0000 Subject: [PATCH] refactor --- app/controllers/locations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/locations_controller.rb b/app/controllers/locations_controller.rb index 8ee8b9663..b9132305f 100644 --- a/app/controllers/locations_controller.rb +++ b/app/controllers/locations_controller.rb @@ -43,7 +43,7 @@ class LocationsController < ApplicationController def deactivate @location.run_deactivation_validations! - if @location.location_deactivation_periods.create!(deactivation_date: params[:location][:deactivation_date]) && update_affected_logs + if @location.location_deactivation_periods.create!(deactivation_date:) && update_affected_logs flash[:notice] = deactivate_success_notice end redirect_to scheme_location_path(@scheme, @location)