X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e159519053a0f74c96a596ae78f3587bb98ebd09..e59c1d365d9b6e1eff9b5cb030a8b1a3aaf14353:/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