mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
111864739-contact_and_domain_create
This commit is contained in:
parent
59f7f364ad
commit
6ebcaf69d0
5 changed files with 67 additions and 17 deletions
|
@ -30,6 +30,8 @@ class Epp::DomainsController < EppController
|
|||
handle_errors and return unless balance_ok?('create') # loads pricelist in this method
|
||||
|
||||
ActiveRecord::Base.transaction do
|
||||
@domain.add_legal_file_to_new(params[:parsed_frame])
|
||||
|
||||
if @domain.save # TODO: Maybe use validate: false here because we have already validated the domain?
|
||||
current_user.registrar.debit!({
|
||||
sum: @domain_pricelist.price.amount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue