Sha256: 83778402ff0e3957a1218de0a913b8861a40bd539f769919a7487c648ef7c7b7
Contents?: true
Size: 319 Bytes
Versions: 19
Compression:
Stored size: 319 Bytes
Contents
class Dorsale::Address < ::Dorsale::ApplicationRecord belongs_to :addressable, polymorphic: true, inverse_of: :address validates :addressable, presence: true def one_line zip_city = [zip, city].select(&:present?).join(' ') [street, street_bis, zip_city, country].select(&:present?).join(', ') end end
Version data entries
19 entries across 19 versions & 1 rubygems