lib/riak/key.rb in riakpb-0.1.3 vs lib/riak/key.rb in riakpb-0.1.4
- old
+ new
@@ -44,11 +44,11 @@
self.vclock = response.vclock if response.has_field?(:vclock)
if response.has_field?(:content)
self.content = response.content
- elsif @contents.empty?
+ elsif @contents.blank?
@contents[:new]
end
return(self)
end
@@ -77,10 +77,10 @@
end
# Indicates whether or not the Key is empty
# @return [Boolean] true or false, whether or not the vclock/content is empty
def empty?
- return(true) if @vclock.empty? && (@contents.nil? || @contents.empty?)
+ return(true) if @vclock.blank? && @contents.nil?
return(false)
end
# Refreshes the Key and its content with fresh data, if there's concern that separate updates may have taken place.
# @return