mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Add loan and credit card views * Lint fix * Clean up overview card markup * Lint fix * Test fix
16 lines
301 B
Ruby
16 lines
301 B
Ruby
class Address < ApplicationRecord
|
|
belongs_to :addressable, polymorphic: true
|
|
|
|
def to_s
|
|
I18n.t("address.format",
|
|
line1: line1,
|
|
line2: line2,
|
|
county: county,
|
|
locality: locality,
|
|
region: region,
|
|
country: country,
|
|
postal_code: postal_code
|
|
)
|
|
end
|
|
end
|