fix MR comments

This commit is contained in:
Bilal
2020-07-13 14:04:14 +02:00
parent e0cf5ba875
commit 3ffa883462
13 changed files with 89 additions and 53 deletions

View File

@@ -16,6 +16,12 @@ class TalentRelease < ApplicationRecord
include SecondGuardianName
include CsvExportable
class << self
def custom_csv_exportable_headers
%i[name phone email]
end
end
composed_of :person_address,
class_name: "Address",
mapping: [
@@ -87,6 +93,14 @@ class TalentRelease < ApplicationRecord
person_name
end
def phone
person_phone
end
def email
person_email
end
def filename_suffix
"#{person_last_name} #{person_first_name}"
end