forked from bofh/fetsite
AutoCommit Fre Sep 4 14:03:04 CEST 2015
This commit is contained in:
@@ -102,7 +102,7 @@ class Document < ActiveRecord::Base
|
||||
end
|
||||
text :name, :boost=>4.0, :stored=> true
|
||||
text :meeting, stored: true do |d|
|
||||
(d.parent_type == "Meeting")? d.try(:parent).try(:text).to_s : ""
|
||||
(d.parent.is_a?(Meeting))? d.try(:parent).try(:text).to_s : ""
|
||||
end
|
||||
end
|
||||
def maketoc
|
||||
|
||||
Reference in New Issue
Block a user