Sha256: 23e28f004372acb0a2dc5464e479a1841f8b6d50ef8bdb19a2dbdad11c170edf

Contents?: true

Size: 523 Bytes

Versions: 6

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

module Namespaced
  class Person < ApplicationRecord
    has_many :addresses, dependent: :destroy, inverse_of: :person
    has_many :assignments

    global_registry_bindings mdm_id_column: :global_registry_mdm_id,
                             mdm_timeout: 24.hours,
                             exclude_fields: %i[guid]

    def entity_attributes_to_push
      entity_attributes = super
      entity_attributes[:authentication] = { key_guid: guid }
      entity_attributes
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
global-registry-bindings-0.0.6 spec/internal/app/models/namespaced/person.rb
global-registry-bindings-0.0.5 spec/internal/app/models/namespaced/person.rb
global-registry-bindings-0.0.4 spec/internal/app/models/namespaced/person.rb
global-registry-bindings-0.0.3 spec/internal/app/models/namespaced/person.rb
global-registry-bindings-0.0.2 spec/internal/app/models/namespaced/person.rb
global-registry-bindings-0.0.1 spec/internal/app/models/namespaced/person.rb