mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
This is useful for plugins that might otherwise rely on the CUSTOM_FIELD_TRUE constant.
12 lines
204 B
Ruby
12 lines
204 B
Ruby
# frozen_string_literal: true
|
|
|
|
module CustomField
|
|
extend ActiveSupport::Concern
|
|
|
|
class_methods do
|
|
def true_fields
|
|
where(value: HasCustomFields::Helpers::CUSTOM_FIELD_TRUE)
|
|
end
|
|
end
|
|
end
|