discourse/app/models/concerns/searchable.rb
Jarek Radosz 8baf4d5d4c
DEV: Enable Style/RedundantSelf rubocop rule (#40098)
(to be enabled in the shared config)
2026-05-19 19:27:45 +02:00

9 lines
255 B
Ruby
Vendored

# frozen_string_literal: true
module Searchable
extend ActiveSupport::Concern
PRIORITIES = Enum.new(ignore: 1, very_low: 2, low: 3, normal: 0, high: 4, very_high: 5)
included { has_one :"#{name.underscore}_search_data", dependent: :destroy }
end