質問編集履歴
1
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
(1..5).each do |i|
|
22
22
|
|
23
|
-
if
|
23
|
+
if fuga.id == hoge.public_send("fuga_#{i}_id")
|
24
24
|
|
25
|
-
updated_
|
25
|
+
updated_indexs << i
|
26
26
|
|
27
27
|
return {
|
28
28
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
(1..5).each do |i|
|
42
42
|
|
43
|
-
unless updated_
|
43
|
+
unless updated_indexs.include?(i)
|
44
44
|
|
45
45
|
return {
|
46
46
|
|