Sha256: 409c520310f591731df5dbad79ec2ea90c1f749598e91fe4f8c461e3868918d7

Contents?: true

Size: 253 Bytes

Versions: 3

Compression:

Stored size: 253 Bytes

Contents

class AddressCustomAttrNames < ApplicationRecord
  self.table_name = 'addresses'

  acts_as_address(
    country: {
      name_attribute: 'country',
      code_attribute: 'country_code',
      carmen_code: 'code', # same as 'alpha_2_code'
    }
  )
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
address_concern-3.0.0 spec/support/models/address_custom_attr_names.rb
address_concern-2.1.1 spec/support/models/address_custom_attr_names.rb
address_concern-2.1.0 spec/support/models/address_custom_attr_names.rb