Delete organization attribute anyway.

This commit is contained in:
Martin Edenhofer 2015-06-11 10:04:24 +02:00
parent e117747ee8
commit 61bacb8d32

View file

@ -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(
{