Use pluck on DomainAllow.allowed_domains for export (#36019)
This commit is contained in:
@@ -49,8 +49,8 @@ module Admin
|
||||
|
||||
def export_data
|
||||
CSV.generate(headers: export_headers, write_headers: true) do |content|
|
||||
DomainAllow.allowed_domains.each do |instance|
|
||||
content << [instance.domain]
|
||||
DomainAllow.allowed_domains.each do |domain|
|
||||
content << [domain]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user