X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ed2057e310ecd6bab7ade0a73752e388a273031d..a75d871fff6f85f2a102d0f17b6219cfe799abe0:/apps/workbench/app/controllers/authorized_keys_controller.rb diff --git a/apps/workbench/app/controllers/authorized_keys_controller.rb b/apps/workbench/app/controllers/authorized_keys_controller.rb index a2beb494e4..4487ead95a 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -6,7 +6,8 @@ class AuthorizedKeysController < ApplicationController end def create - @object = AuthorizedKey.new authorized_user_uuid: current_user.uuid, key_type: 'SSH' + defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' } + @object = AuthorizedKey.new defaults.merge(params[:authorized_key]) super end end