1 class AuthorizedKeysController < ApplicationController
8 @object.authorized_user_uuid = current_user.uuid if current_user
9 @object.key_type = 'SSH'
13 defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' }
14 @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {})