fix acq.media release CSV export

This commit is contained in:
Bilal
2020-08-05 14:50:58 +02:00
parent 708cc5e0a8
commit 6378d45274
5 changed files with 6 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ class AcquiredMediaRelease < ApplicationRecord
class << self
def custom_csv_exportable_headers
%i[name file_infos_count]
%i[approved? name file_infos_count owner_info]
end
end

View File

@@ -28,6 +28,9 @@ module CsvExportable
end
private
def owner_info
contact_info(name: person_name, address: person_address, phone: person_phone, email: person_email)
end
def contact_info(name: nil, address: nil, phone: nil, email: nil)
contact_info = ''

View File

@@ -71,10 +71,6 @@ class LocationRelease < ApplicationRecord
contact_info(name: name, address: address)
end
def owner_info
contact_info(name: person_name, address: person_address, phone: person_phone, email: person_email)
end
def amendment_signed_column
if amendment_signable?
amendment_signed?