Class: Dorsale::Address
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Dorsale::Address
- Defined in:
- app/models/dorsale/address.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
Instance Method Details
#one_line ⇒ Object
6 7 8 9 |
# File 'app/models/dorsale/address.rb', line 6 def one_line zip_city = [zip, city].select(&:present?).join(' ') [street, street_bis, zip_city, country].select(&:present?).join(', ') end |