internetee-registry/app/controllers/registrar/account_controller.rb
2019-05-16 13:49:29 +03:00

24 lines
No EOL
475 B
Ruby

class Registrar
class AccountController < BaseController
skip_authorization_check
def show; end
def edit
@registrar = current_registrar_user.registrar
end
def update
@registrar = current_registrar_user.registrar
@registrar.update!(registrar_params)
redirect_to registrar_account_path, notice: t('.saved')
end
private
def registrar_params
params.require(:registrar).permit(:billing_email)
end
end
end