Skip to content

Commit

Permalink
fix creating a new manifestation_relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jan 27, 2024
1 parent 75b29c6 commit 0db44fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/manifestation_relationships_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def new
redirect_to manifestations_url
nil
else
@manifestation_relationship = ManifestationRelationship.new
@manifestation_relationship.manifestation = @manifestation
@manifestation_relationship = ManifestationRelationship.new(
parent: @manifestation,
child: Manifestation.find(params[:child_id])
)
end
end

Expand Down

0 comments on commit 0db44fb

Please sign in to comment.