mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
8 lines
153 B
Ruby
8 lines
153 B
Ruby
|
module Searchable
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
included do
|
||
|
has_one "#{self.name.underscore}_search_data".to_sym, dependent: :destroy
|
||
|
end
|
||
|
end
|