nil? not nill?

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

View File

@@ -72,7 +72,7 @@ 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>'
@@ -81,7 +81,7 @@ class Document < ActiveRecord::Base
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>'