Sha256: 7651ae2e9294872cde0db55b95f5f8b5cc5b7a036909e40976c5c2e25339ae36

Contents?: true

Size: 912 Bytes

Versions: 16

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

class Assignment < ApplicationRecord
  belongs_to :person, class_name: 'Namespaced::Person'
  belongs_to :organization
  belongs_to :assigned_by, class_name: 'Namespaced::Person', foreign_key: 'assigned_by_id'

  global_registry_bindings binding: :relationship,
                           type: :fancy_org_assignment,
                           primary: :person,
                           related: :organization,
                           include_all_columns: true,
                           exclude: %i[assigned_by_id assigned_by_gr_rel_id]

  global_registry_bindings binding: :relationship,
                           type: :assigned_by,
                           id_column: :assigned_by_gr_rel_id,
                           primary_binding: :fancy_org_assignment,
                           primary_name: :assigned_by,
                           related: :assigned_by
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
global-registry-bindings-0.6.2 spec/internal/app/models/assignment.rb
global-registry-bindings-0.6.1 spec/internal/app/models/assignment.rb
global-registry-bindings-0.6.0 spec/internal/app/models/assignment.rb
global-registry-bindings-0.5.0 spec/internal/app/models/assignment.rb
global-registry-bindings-0.4.0 spec/internal/app/models/assignment.rb
global-registry-bindings-0.3.3 spec/internal/app/models/assignment.rb
global-registry-bindings-0.3.2 spec/internal/app/models/assignment.rb
global-registry-bindings-0.3.1 spec/internal/app/models/assignment.rb
global-registry-bindings-0.3.0 spec/internal/app/models/assignment.rb
global-registry-bindings-0.2.0 spec/internal/app/models/assignment.rb
global-registry-bindings-0.1.9 spec/internal/app/models/assignment.rb
global-registry-bindings-0.1.8 spec/internal/app/models/assignment.rb
global-registry-bindings-0.1.7 spec/internal/app/models/assignment.rb
global-registry-bindings-0.1.6 spec/internal/app/models/assignment.rb
global-registry-bindings-0.1.5 spec/internal/app/models/assignment.rb
global-registry-bindings-0.1.4 spec/internal/app/models/assignment.rb