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