From 6f0375e9f54a270ca59a8cd2d683d8d15027f090 Mon Sep 17 00:00:00 2001 From: Eliseu Ramos Date: Fri, 16 Feb 2024 10:47:55 -0300 Subject: [PATCH] =?UTF-8?q?Refatora=20professional=5Finfos#create=20para?= =?UTF-8?q?=20simplificar=20l=C3=B3gica?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/professional_infos_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/professional_infos_controller.rb b/app/controllers/professional_infos_controller.rb index 6073695..ccb152d 100644 --- a/app/controllers/professional_infos_controller.rb +++ b/app/controllers/professional_infos_controller.rb @@ -8,7 +8,7 @@ def new end def create - @professional_info = current_user.profile.professional_infos.build(professional_info_params) + @professional_info = current_user.professional_infos.build(professional_info_params) if @professional_info.save redirect_to profile_path(current_user.profile.slug), notice: t('.success')