From 61bacb8d32aca95aa098132b1363936735062598 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 11 Jun 2015 10:04:24 +0200 Subject: [PATCH] Delete organization attribute anyway. --- lib/auto_wizard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auto_wizard.rb b/lib/auto_wizard.rb index 18c2f3346..b22081668 100644 --- a/lib/auto_wizard.rb +++ b/lib/auto_wizard.rb @@ -96,11 +96,11 @@ returns # lookup organization if user_data['organization'] && !user_data['organization'].empty? organization = Organization.find_by(name: user_data['organization']) - user_data.delete('organization') if organization user_data['organization_id'] = organization.id end end + user_data.delete('organization') user_data_symbolized = user_data.symbolize_keys.merge( {