Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[chaos] Remove tire callbacks from document.rb

  • Loading branch information...
commit 7d505eeb01f2453d84b93152a9210df5e31f8425 1 parent d7bfab3
@malev malev authored
Showing with 0 additions and 17 deletions.
  1. +0 −17 chaos/lib/mapa76/core/model/document.rb
View
17 chaos/lib/mapa76/core/model/document.rb
@@ -39,23 +39,6 @@ class Document
scope :private_for, ->(user){ where(:user_id => user.id, :public => false) }
- include Tire::Model::Search
- # include Tire::Model::Callbacks
-
- tire do
- mapping do
- indexes :title, analyzer: "snowball", boost: 100
- indexes :original_title, analyzer: "snowball", boost: 90
- indexes :pages, analyzer: "snowball"
- indexes :user_id, index: :not_analyzed
- end
- end
-
- def self.reindex
- Document.tire.index.delete
- Document.tire.import
- end
-
def flagger
if flagger_id
User.find(flagger_id)
Please sign in to comment.
Something went wrong with that request. Please try again.