回答編集履歴
1
誤字の修正
test
CHANGED
@@ -14,11 +14,11 @@
|
|
14
14
|
|
15
15
|
```Ruby
|
16
16
|
|
17
|
-
-timecard1 = @time_card.where(created_at: date.beginning_of_day..date.end_of_day).
|
17
|
+
-timecard1 = @time_card.where(created_at: date.beginning_of_day..date.end_of_day).second
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
|
21
|
+
secondを加えるだけでした。
|
22
22
|
|
23
23
|
|
24
24
|
|
@@ -70,7 +70,7 @@
|
|
70
70
|
|
71
71
|
-timecard = @time_card.where(created_at: date.beginning_of_day..date.end_of_day).first
|
72
72
|
|
73
|
-
-timecard1 = @time_card.where(created_at: date.beginning_of_day..date.end_of_day).
|
73
|
+
-timecard1 = @time_card.where(created_at: date.beginning_of_day..date.end_of_day).second
|
74
74
|
|
75
75
|
-if timecard && timecard1
|
76
76
|
|