mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Domain create fix
This commit is contained in:
parent
050e251a58
commit
bcc4df6bed
2 changed files with 5 additions and 7 deletions
|
@ -2,7 +2,7 @@ class Epp::DomainsController < EppController
|
||||||
skip_authorization_check # TODO: remove it
|
skip_authorization_check # TODO: remove it
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@domain = Epp::EppDomain.new(params[:parsed_frame], current_user)
|
@domain = Epp::EppDomain.new_from_epp(params[:parsed_frame], current_user)
|
||||||
# @domain.parse_and_attach_domain_dependencies(params[:parsed_frame])
|
# @domain.parse_and_attach_domain_dependencies(params[:parsed_frame])
|
||||||
# @domain.parse_and_attach_ds_data(params[:parsed_frame].css('extension create'))
|
# @domain.parse_and_attach_ds_data(params[:parsed_frame].css('extension create'))
|
||||||
|
|
||||||
|
|
|
@ -58,12 +58,10 @@ class Epp::EppDomain < Domain
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
# def self.new_from_epp(domain_params)
|
def self.new_from_epp(frame, current_user)
|
||||||
# new(domain_params)
|
domain = Epp::EppDomain.new
|
||||||
# end
|
domain.attributes = domain.attrs_from(frame, current_user)
|
||||||
|
domain
|
||||||
def initialize(frame, current_user)
|
|
||||||
super(attrs_from(frame, current_user))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def attrs_from(frame, current_user)
|
def attrs_from(frame, current_user)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue