use guardian_address_street1 for old guardian_address

This commit is contained in:
bilal
2020-06-17 09:44:34 +02:00
parent d165f5fd36
commit ba0efd7233
10 changed files with 5 additions and 28 deletions

View File

@@ -107,19 +107,6 @@ class AppearanceRelease < ApplicationRecord
person_phone
]
def guardian_address
return self.guardian_address_old if self.guardian_address_old.present?
Address.new(
self.guardian_address_street1,
self.guardian_address_street2,
self.guardian_address_city,
self.guardian_address_state,
self.guardian_address_zip,
self.guardian_address_country
).to_s(format: :full)
end
# All releases must respond to the following messages
def name
person_name