Permalink
Browse files

blank? and duplicable? are Object extensions

  • Loading branch information...
1 parent 005b401 commit bd28c7b1b8a569d431cc93924ad1ff5fdb59f401 @jeremy jeremy committed Mar 21, 2009
@@ -1,3 +1,6 @@
+require 'active_support/core_ext/object/blank'
+require 'active_support/core_ext/object/duplicable'
+
require 'active_support/core_ext/object/conversions'
require 'active_support/core_ext/object/extending'
require 'active_support/core_ext/object/instance_variables'
@@ -12,7 +12,7 @@ class Object
def blank?
respond_to?(:empty?) ? empty? : !self
end
-
+
# An object is present if it's not blank.
def present?
!blank?

0 comments on commit bd28c7b

Please sign in to comment.