mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Fix some CC issues
This commit is contained in:
parent
db50a89d85
commit
7edf48c885
4 changed files with 24 additions and 28 deletions
|
@ -15,7 +15,8 @@ module Repp
|
|||
|
||||
## GET /repp/v1/contacts/1
|
||||
def show
|
||||
serializer = ::Serializers::Repp::Contact.new(@contact, show_address: Contact.address_processing?)
|
||||
serializer = ::Serializers::Repp::Contact.new(@contact,
|
||||
show_address: Contact.address_processing?)
|
||||
render_success(data: serializer.to_json)
|
||||
end
|
||||
|
||||
|
@ -82,7 +83,8 @@ module Repp
|
|||
return contacts.pluck(:code) unless details
|
||||
|
||||
contacts = contacts.map do |contact|
|
||||
serializer = ::Serializers::Repp::Contact.new(contact, show_address: Contact.address_processing?)
|
||||
serializer = ::Serializers::Repp::Contact.new(contact,
|
||||
show_address: Contact.address_processing?)
|
||||
serializer.to_json
|
||||
end
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ module Repp
|
|||
params.permit(data: [
|
||||
:type, :id,
|
||||
{ domains: [],
|
||||
attributes: [:hostname, { ipv4: [], ipv6: [] }] },
|
||||
attributes: [:hostname, { ipv4: [], ipv6: [] }] }
|
||||
])
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue