discourse/app/models/concerns/custom_field.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
204 B
Ruby
Raw Normal View History

# 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