mirror of
https://github.com/internetee/registry.git
synced 2025-08-20 00:14:05 +02:00
REPP: Ditch _id from registrant / registrar attributes
This commit is contained in:
parent
83bfc493bb
commit
d6b266459b
5 changed files with 15 additions and 15 deletions
|
|
@ -66,16 +66,16 @@ module Actions
|
|||
end
|
||||
|
||||
def assign_registrant
|
||||
unless params[:registrant_id]
|
||||
unless params[:registrant]
|
||||
domain.add_epp_error('2306', nil, nil, %i[registrant cannot_be_missing])
|
||||
return
|
||||
end
|
||||
|
||||
regt = Registrant.find_by(code: params[:registrant_id])
|
||||
regt = Registrant.find_by(code: params[:registrant])
|
||||
if regt
|
||||
domain.registrant = regt
|
||||
else
|
||||
domain.add_epp_error('2303', 'registrant', params[:registrant_id], %i[registrant not_found])
|
||||
domain.add_epp_error('2303', 'registrant', params[:registrant], %i[registrant not_found])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ module Actions
|
|||
end
|
||||
|
||||
def current_registrar
|
||||
Registrar.find(params[:registrar_id])
|
||||
Registrar.find(params[:registrar])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue