nil? not nill?

This commit is contained in:
Pet
2018-06-03 22:49:57 +02:00
parent 1b3e5694c9
commit 638795b8d3

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