关注列表/点赞列表/fork列表的后端

This commit is contained in:
sylor_huang@126.com
2020-05-15 17:05:53 +08:00
parent cf20cc3a0b
commit 46c929a394
12 changed files with 87 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ module Watchable
end
def watch!(watchable)
watchable.watchers.create!(user: self)
watchable.watchers.create!(user: self, created_at: Time.current)
end
def unwatch!(watchable)