From 56bb2ccf03ce63269fedadd501b2130934025fc1 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 4 Jul 2023 03:19:05 -0700 Subject: [PATCH] Remove ap call and unused code --- app/controllers/api/v1/parties_controller.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index c841a26..1cc1965 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -22,20 +22,6 @@ module Api party = Party.new party.user = current_user if current_user party.attributes = party_params if party_params - ap party - - # unless party_params.empty? - # party.attributes = party_params - # - # # TODO: Extract this into a different method - # job = Job.find(party_params['job_id']) if party_params['job_id'].present? - # if job - # job_skills = JobSkill.where(job: job.id, main: true) - # job_skills.each_with_index do |skill, index| - # party["skill#{index}_id"] = skill.id - # end - # end - # end if party.save! return render json: PartyBlueprint.render(party, view: :created, root: :party),