14 lines
452 B
Ruby
14 lines
452 B
Ruby
class AuditorsController < ApplicationController
|
|
def index
|
|
auditors = Auditor.all
|
|
|
|
@info_about_auditors = auditors.each_with_object({}) do |auditor, hash|
|
|
hash[auditor.id] = {
|
|
"Наименование аудиторской организации/ФИО индивидуального аудитора" => auditor.name,
|
|
"ИНН" => auditor.inn,
|
|
"ОГРН/ОРГНИП" => auditor.ogrn
|
|
}
|
|
end
|
|
end
|
|
end
|