spec/internal/app/models/assignment.rb in global-registry-bindings-0.1.3 vs spec/internal/app/models/assignment.rb in global-registry-bindings-0.1.4
- old
+ new
@@ -5,17 +5,17 @@
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_association: :person,
- related_association: :organization,
+ 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_relationship_name: :assigned_by,
- related_association: :assigned_by
+ primary_name: :assigned_by,
+ related: :assigned_by
end