Module: Shared::ProjectUnification
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/shared/project_unification.rb
Overview
Concern for models that need custom conflict handling during project unification
Include this concern in models that have complex validation logic requiring special handling when merging projects.
Instance Method Summary collapse
-
#handle_unify_conflict(target_project_id) ⇒ nil, ...
Override this method in models that need custom conflict resolution.
Instance Method Details
#handle_unify_conflict(target_project_id) ⇒ nil, ...
Override this method in models that need custom conflict resolution. Called by the migrator when validation fails (uniqueness conflict) after project_id is changed to the target project.
30 31 |
# File 'app/models/concerns/shared/project_unification.rb', line 30 def handle_unify_conflict(target_project_id) end |