回答編集履歴
1
書式の修正、コメント追加
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
temp_workitem_params = workitem_params
|
33
|
+
temp_workitem_params = workitem_params
|
34
34
|
|
35
35
|
destination_attributes = temp_workitem_params[:destination_attributes]
|
36
36
|
|
@@ -47,6 +47,8 @@
|
|
47
47
|
@destination = Destination.new(content)
|
48
48
|
|
49
49
|
end
|
50
|
+
|
51
|
+
# 後述する@workitem.saveに影響するのでdestination_attributesを削除
|
50
52
|
|
51
53
|
temp_workitem_params.delete('destination_attributes');
|
52
54
|
|
@@ -76,7 +78,7 @@
|
|
76
78
|
|
77
79
|
def update
|
78
80
|
|
79
|
-
temp_workitem_params = workitem_params
|
81
|
+
temp_workitem_params = workitem_params
|
80
82
|
|
81
83
|
destination_attributes = temp_workitem_params[:destination_attributes]
|
82
84
|
|
@@ -106,6 +108,8 @@
|
|
106
108
|
|
107
109
|
end
|
108
110
|
|
111
|
+
# 後述する@workitem.updateに影響するのでdestination_attributesを削除
|
112
|
+
|
109
113
|
temp_workitem_params.delete('destination_attributes');
|
110
114
|
|
111
115
|
|