mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 09:04:45 +08:00
DEV: Add true_fields method for CustomFields (#24876)
This is useful for plugins that might otherwise rely on the CUSTOM_FIELD_TRUE constant.
This commit is contained in:

committed by
GitHub

parent
74f964f2b4
commit
d7a09fb08d
@ -1,6 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class TopicCustomField < ActiveRecord::Base
|
||||
include CustomField
|
||||
|
||||
belongs_to :topic
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user