discourse/app/models/concerns/searchable.rb
2017-08-15 11:46:57 -04:00

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