Skip to content

Commit e81da41

Browse files
committed
fix creating a new manifestation_relationship
1 parent 59f1388 commit e81da41

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/controllers/manifestation_relationships_controller.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ def new
3333
redirect_to manifestations_url
3434
nil
3535
else
36-
@manifestation_relationship = ManifestationRelationship.new
37-
@manifestation_relationship.manifestation = @manifestation
36+
@manifestation_relationship = ManifestationRelationship.new(
37+
parent: @manifestation,
38+
child: Manifestation.find(params[:child_id])
39+
)
3840
end
3941
end
4042

0 commit comments

Comments
 (0)