From e9485dccc37050aeb1ed967a9f5fcb0000e64fcc Mon Sep 17 00:00:00 2001 From: JG Date: Wed, 20 Jul 2022 10:33:53 +0100 Subject: [PATCH] redundant method --- app/controllers/locations_controller.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/controllers/locations_controller.rb b/app/controllers/locations_controller.rb index 7effcc33d..4a27c951b 100644 --- a/app/controllers/locations_controller.rb +++ b/app/controllers/locations_controller.rb @@ -15,16 +15,6 @@ class LocationsController < ApplicationController @location = Location.new end - def validation_errors(scheme_params) - scheme_params.each_key do |key| - if key == "support_services_provider" - @scheme.errors.add("support_services_provider_before_type_cast".to_sym) if scheme_params[key].to_s.empty? - elsif scheme_params[key].to_s.empty? - @scheme.errors.add(key.to_sym) - end - end - end - def create if valid_date_params?(location_params) @location = Location.new(location_params)