README.md in global-registry-bindings-0.0.5 vs README.md in global-registry-bindings-0.0.6
- old
+ new
@@ -56,13 +56,18 @@
* `:type`: Global Registry entity type. Default value is underscored name of the model.
* `:push_on`: Array of Active Record lifecycle events used to push changes to Global Registry.
(default: `[:create, :update, :delete]`)
* `:parent_association`: Name of the Active Record parent association. Must be defined before calling
global_registry_bindings in order to determine foreign_key field. (default: `nil`)
+* `:parent_association_class`: Class name of the parent model. Required if `:parent_association` can not be used
+ to determine the parent class. This can happen if parent is defined by another gem, like `has_ancestry`.
+ (default: `nil`)
* `:related_association`: Name of the Active Record related association. Setting this option changes the
global registry binding from entity to relationship. Active Record association must be defined before calling
global_registry_bindings in order to determine the foreign key. `:parent_relationship_name` and
`:related_relationship_name` must be set for relationship binding to work. (default: `nil`)
+* `:related_association_class`: Class name of the related model. Required if `:related_association` can not be
+ used to determine the related class. (default: `nil`)
* `:parent_relationship_name`: Name of parent relationship role. (default: `nil`)
* `:related_relationship_name`: Name of the related relationship role. (default: `nil`)
* `:exclude_fields`: Model fields to exclude when pushing to Global Registry. Will additionally include `:mdm_id_column`
and `:parent_association` foreign key when defined.
(default: `[:id, :created_at, :updated_at, :global_registry_id]`)