diverse hot fixes von der productive Version auf fetruby

This commit is contained in:
2018-05-14 17:56:17 +02:00
parent ee451cdd9b
commit 9f1de3d9d0
8 changed files with 23 additions and 10 deletions

View File

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