Sha256: 7054bf656614b0d1066b2975421dd776d0079d21b4123841a95feff906a1fc23

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

# frozen_string_literal: true

class Community < ApplicationRecord
  global_registry_bindings ensure_entity_type: false,
                           exclude_fields: %i[infobase_id infobase_gr_id]

  global_registry_bindings binding: :relationship,
                           type: :infobase_ministry,
                           id_column: :infobase_gr_id,
                           related_relationship_name: :ministry,
                           related_association_type: :ministry,
                           related_association_foreign_key: :infobase_id,
                           related_global_registry_id: :pull_infobase_global_registry_id,
                           include_all_columns: false

  def pull_infobase_global_registry_id(_type)
    '41f767fd-86f4-42e2-8d24-cbc3f697b794'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
global-registry-bindings-0.1.2 spec/internal/app/models/community.rb