mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Fix CC issues
This commit is contained in:
parent
451e1f79af
commit
a182dfb3ba
5 changed files with 7 additions and 6 deletions
|
@ -32,7 +32,8 @@ module Repp
|
|||
domains = params[:data][:domains] || []
|
||||
|
||||
begin
|
||||
affected_domains = current_user.registrar.replace_nameservers(hostname, new_attributes, domains)
|
||||
affected_domains = current_user.registrar.replace_nameservers(hostname, new_attributes,
|
||||
domains: domains)
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
error!({ errors: e.record.errors.full_messages.map { |error| { title: error } } }, 400)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue