Merge branch 'master' into 3836-remove-collection-from-project-bug
[arvados.git] / apps / workbench / app / controllers / authorized_keys_controller.rb
1 class AuthorizedKeysController < ApplicationController
2   def index_pane_list
3     %w(Recent Help)
4   end
5
6   def new
7     super
8     @object.authorized_user_uuid = current_user.uuid if current_user
9     @object.key_type = 'SSH'
10   end
11
12   def create
13     defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' }
14     @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {})
15     super
16   end
17 end