aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-03-06 20:34:56 +0100
committerXavier Noria <fxn@hashref.com>2011-03-06 20:34:56 +0100
commit3a621e7be4d5f592e04e8ee03435936f9e5f1c36 (patch)
tree894abbc4e3047104b3d84c0ea11eed670db58c5d /activesupport/lib
parent89d825d02172f7c1ba1211119ea9844206aae9c3 (diff)
downloadrails-3a621e7be4d5f592e04e8ee03435936f9e5f1c36.tar.gz
rails-3a621e7be4d5f592e04e8ee03435936f9e5f1c36.tar.bz2
rails-3a621e7be4d5f592e04e8ee03435936f9e5f1c36.zip
removes merge conflicts
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/reverse_merge.rb11
-rw-r--r--activesupport/lib/active_support/core_ext/object/blank.rb4
2 files changed, 0 insertions, 15 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb b/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb
index 63b4ba49e9..01863a162b 100644
--- a/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb
+++ b/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb
@@ -3,23 +3,12 @@ class Hash
#
# options = options.reverse_merge(:size => 25, :velocity => 10)
#
-<<<<<<< HEAD
- # The default <tt>:size</tt> and <tt>:velocity</tt> are only set if the +options+ hash passed in doesn't already
- # have the respective key.
- #
- # As contrast, using Ruby's built in <tt>merge</tt> would require writing the following:
- #
- # def setup(options = {})
- # options = { :size => 25, :velocity => 10 }.merge(options)
- # end
-=======
# is equivalent to
#
# options = {:size => 25, :velocity => 10}.merge(options)
#
# This is particularly useful for initializing an options hash
# with default values.
->>>>>>> 20768176292cbcb883ab152b4aa9ed8c664771cd
def reverse_merge(other_hash)
other_hash.merge(self)
end
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb
index 7b5832b51a..d0c1ea8326 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -13,11 +13,7 @@ class Object
respond_to?(:empty?) ? empty? : !self
end
-<<<<<<< HEAD
- # An object is present if it's not #blank?.
-=======
# An object is present if it's not <tt>blank?</tt>.
->>>>>>> 20768176292cbcb883ab152b4aa9ed8c664771cd
def present?
!blank?
end