Skip to content

Commit 7f70587

Browse files
committed
pass what needs to be duplicated
1 parent 6aef897 commit 7f70587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/project.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def siblings
7575

7676
def clone_stories_into(clone)
7777
stories.each do |story|
78-
attrs = story.dup.attributes.except("status", "id", "created_at", "updated_at")
78+
attrs = story.dup.attributes.slice("title", "description", "position", "extra_info")
7979
clone.stories.create(attrs)
8080
end
8181
end

0 commit comments

Comments
 (0)