mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
replaced each method to pluck
This commit is contained in:
parent
4982aba97c
commit
d333f7ce0e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Registrar
|
|||
parsed_response = JSON.parse(response.body, symbolize_names: true)
|
||||
|
||||
if response.code == '200'
|
||||
failed = parsed_response[:data][:failed].each(&:domain_name).join(', ')
|
||||
failed = parsed_response[:data][:failed].pluck(:domain_name).join(', ')
|
||||
flash[:notice] = t('.transferred', count: parsed_response[:data][:success].size,
|
||||
failed: failed)
|
||||
redirect_to registrar_domains_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue