Sha256: 539778f68160d35e5b76eafd26098ff2fd3ea02f2b2469109c5f5d011b24e4b4
Contents?: true
Size: 642 Bytes
Versions: 3
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true class Address < ApplicationRecord EXCLUDE_GR_FIELDS = %i[id created_at updated_at global_registry_id person_id address1].freeze belongs_to :person, class_name: 'Namespaced::Person', inverse_of: :addresses global_registry_bindings parent_association: :person, exclude_fields: proc { |_type, _model| EXCLUDE_GR_FIELDS }, extra_fields: :global_registry_extra_fields alias_attribute :line1, :address1 alias_attribute :postal_code, :zip def global_registry_extra_fields(_type) { line1: :string, line2: :string, postal_code: :string } end end
Version data entries
3 entries across 3 versions & 1 rubygems