X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ab3f9742f002e3af4339c17eede2b6ee99df83b2..f1eb092c311510b60b8c9b00b64407780e2a0302:/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 4487ead95a..6eaec1ee59 100644 --- a/apps/workbench/app/controllers/authorized_keys_controller.rb +++ b/apps/workbench/app/controllers/authorized_keys_controller.rb @@ -1,4 +1,8 @@ class AuthorizedKeysController < ApplicationController + def index_pane_list + %w(Recent Help) + end + def new super @object.authorized_user_uuid = current_user.uuid if current_user @@ -7,7 +11,7 @@ class AuthorizedKeysController < ApplicationController def create defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' } - @object = AuthorizedKey.new defaults.merge(params[:authorized_key]) + @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {}) super end end