このコミットが含まれているのは:
2025-05-30 01:21:30 +09:00
コミット f93cea4e51
8個のファイルの変更85行の追加8行の削除
+1 -1
ファイルの表示
@@ -17,6 +17,6 @@ class User < ApplicationRecord
has_many :updated_wiki_pages, class_name: 'WikiPage', foreign_key: 'updated_user_id', dependent: :nullify
def viewed? post
user_post_views.exists? post_id: post.id, viewed: true
user_post_views.exists? post_id: post.id
end
end