Skip to content
Permalink
Browse files

Add document and searcher mapping

  • Loading branch information...
kou committed Dec 22, 2016
1 parent 7540f79 commit 397d444eb264c41544f050a4fd12a740aaaca4b0
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/models/document.rb
@@ -1,2 +1,5 @@
class Document < ApplicationRecord
source = DocumentsSearcher.source(self)
source.title = :title
source.content = :content
end

0 comments on commit 397d444

Please sign in to comment.
You can’t perform that action at this time.