themen spezifische rollen

This commit is contained in:
Andreas Stephanides
2015-02-10 14:04:54 +01:00
parent 2b483ae9e9
commit 7326b08729
2 changed files with 2 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ include Rails.application.routes.url_helpers
scope :public, where(:isdraft=>false).includes(:themengruppe).where("themengruppen.public"=>true)
default_scope order("themen.priority").reverse_order
# scope :search, ->(query) {where("themen.text like ? or themen.title like ?", "%#{query}%", "%#{query}%")}
resourcify
searchable do
text :text
text :title, :boost=>4.0