質問編集履歴
3
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,9 +16,9 @@
|
|
16
16
|
|
17
17
|
#Comment model
|
18
18
|
|
19
|
+
def create
|
19
20
|
|
20
|
-
|
21
|
-
comment = current_user.comments.build do |t|
|
21
|
+
comment = current_user.comments.build do |t|
|
22
22
|
|
23
23
|
t.item_id = params[:item_id]
|
24
24
|
|
@@ -28,13 +28,13 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
Notification.create(user_id: current_user.id, item_id: params[:item_id], status: "1")
|
34
31
|
|
35
32
|
|
36
33
|
|
34
|
+
|
37
|
-
|
35
|
+
Notification.create(user_id: current_user.id, item_id: params[:item_id], status: "1")
|
36
|
+
|
37
|
+
|
38
38
|
|
39
39
|
|
40
40
|
|
@@ -52,4 +52,12 @@
|
|
52
52
|
|
53
53
|
end
|
54
54
|
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
55
63
|
```
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,15 +28,13 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
|
31
|
+
|
32
32
|
|
33
|
-
|
33
|
+
Notification.create(user_id: current_user.id, item_id: params[:item_id], status: "1")
|
34
|
-
|
35
|
-
t.status = 1
|
36
|
-
|
37
|
-
end
|
38
34
|
|
39
35
|
|
36
|
+
|
37
|
+
|
40
38
|
|
41
39
|
|
42
40
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,6 +13,10 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
```lang-ruby
|
16
|
+
|
17
|
+
#Comment model
|
18
|
+
|
19
|
+
|
16
20
|
|
17
21
|
comment = current_user.comments.build do |t|
|
18
22
|
|