Commits

Anonymous committed b57d623

Monkeypatch #present? separately from #blank?

Comments (0)

Files changed (1)

riak-client/lib/riak/core_ext/blank.rb

     def blank?
       false
     end
-
-    def present?
-      not blank?
-    end
   end
 
   class NilClass
     alias :blank? :empty?
   end
 end
+
+unless Object.new.respond_to? :present?
+  class Object
+    def present?
+      not blank?
+    end
+  end
+end