mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: Can create warnings for users via PM
This commit is contained in:
parent
a8e4c4caa1
commit
b0bfc1f93f
37 changed files with 243 additions and 18 deletions
|
@ -100,6 +100,7 @@ class Topic < ActiveRecord::Base
|
|||
has_many :invites, through: :topic_invites, source: :invite
|
||||
|
||||
has_many :revisions, foreign_key: :topic_id, class_name: 'TopicRevision'
|
||||
has_one :warning
|
||||
|
||||
# When we want to temporarily attach some data to a forum topic (usually before serialization)
|
||||
attr_accessor :user_data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue