lib/support/presence.rb in hungry-0.1.1 vs lib/support/presence.rb in hungry-0.1.2
- old
+ new
@@ -7,10 +7,10 @@
unless respond_to?(:present?)
def present?
!!presence
end
end
-
+
unless respond_to?(:presence)
def presence
return nil if respond_to?(:empty?) ? empty? : !self
self
end