diff options
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object.rb | 3 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/blank.rb (renamed from activesupport/lib/active_support/core_ext/blank.rb) | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/duplicable.rb (renamed from activesupport/lib/active_support/core_ext/duplicable.rb) | 0 |
3 files changed, 4 insertions, 1 deletions
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 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 index 8f49ddfd9e..8f49ddfd9e 100644 --- a/activesupport/lib/active_support/core_ext/duplicable.rb +++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb |