mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
Support Ruby 2.4.
This commit is contained in:
@ -118,7 +118,7 @@ class Topic < ActiveRecord::Base
|
||||
has_many :invites, through: :topic_invites, source: :invite
|
||||
has_many :topic_status_updates, dependent: :destroy
|
||||
|
||||
has_one :warning
|
||||
has_one :user_warning
|
||||
has_one :first_post, -> {where post_number: 1}, class_name: Post
|
||||
|
||||
# When we want to temporarily attach some data to a forum topic (usually before serialization)
|
||||
|
Reference in New Issue
Block a user