Corrected solr config + minor bugfixes

This commit is contained in:
2018-09-17 12:05:47 +02:00
parent 1cf84c90ae
commit a20c6fa673
4 changed files with 12 additions and 4 deletions

View File

@@ -72,16 +72,16 @@ class Document < ActiveRecord::Base
unless self.is_etherpad? || self.id.nil?
self.etherpadkey="document_"+ self.id.to_s
if self.text.nill?
if self.text.nil?
self.ep_pad.html = '<div>'+"text"+'</div>'
else
self.ep_pad.html = '<div>'+self.text+'</div>'
end
end
end
end
def dump_to_etherpad
if self.is_etherpad?
if self.text.nill?
if self.text.nil?
self.ep_pad.html = '<div>'+"text"+'</div>'
else
self.ep_pad.html = '<div>'+self.text+'</div>'