lib/object_present.rb in markdown_exec-2.3.0 vs lib/object_present.rb in markdown_exec-2.4.0
- old
+ new
@@ -41,10 +41,10 @@
def present?
case self.class.to_s
when 'FalseClass', 'TrueClass'
true
else
- self && (!respond_to?(:present?) || !present?)
+ self && (!respond_to?(:empty?) || !empty?)
end
end
end
end