Skip to content

Commit

Permalink
Refatora professional_infos#create para simplificar lógica
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseuramos93 committed Feb 16, 2024
1 parent fe68c3f commit 6f0375e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/professional_infos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6f0375e

Please sign in to comment.