This commit is contained in:
2025-05-30 01:21:30 +09:00
parent e8e18160bc
commit f93cea4e51
8 changed files with 85 additions and 8 deletions
+1 -1
View File
@@ -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