nil? not nill?
This commit is contained in:
@@ -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>'
|
||||
|
||||
Reference in New Issue
Block a user