From bd28c7b1b8a569d431cc93924ad1ff5fdb59f401 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 21 Mar 2009 03:34:49 -0700 Subject: [PATCH] blank? and duplicable? are Object extensions --- activesupport/lib/active_support/core_ext/object.rb | 3 +++ .../lib/active_support/core_ext/{ => object}/blank.rb | 2 +- .../lib/active_support/core_ext/{ => object}/duplicable.rb | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename activesupport/lib/active_support/core_ext/{ => object}/blank.rb (99%) rename activesupport/lib/active_support/core_ext/{ => object}/duplicable.rb (100%) diff --git a/activesupport/lib/active_support/core_ext/object.rb b/activesupport/lib/active_support/core_ext/object.rb index 0796a7b710..31a1526674 100644 --- a/activesupport/lib/active_support/core_ext/object.rb +++ b/activesupport/lib/active_support/core_ext/object.rb @@ -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' diff --git a/activesupport/lib/active_support/core_ext/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb similarity index 99% rename from activesupport/lib/active_support/core_ext/blank.rb rename to activesupport/lib/active_support/core_ext/object/blank.rb index 4f8dc4e281..9a1f663bf3 100644 --- a/activesupport/lib/active_support/core_ext/blank.rb +++ b/activesupport/lib/active_support/core_ext/object/blank.rb @@ -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? diff --git a/activesupport/lib/active_support/core_ext/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb similarity index 100% rename from activesupport/lib/active_support/core_ext/duplicable.rb rename to activesupport/lib/active_support/core_ext/object/duplicable.rb