AutoCommit Fre Sep 4 14:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-09-04 14:03:04 +02:00
parent f7ad93c398
commit c7d12e9a42
2 changed files with 10 additions and 5 deletions

View File

@@ -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