aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-11 08:23:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-11 08:23:50 +0000
commit8ae68efcf84d9c9927c4db7dfeb0f41693b9e555 (patch)
tree777b582e86de7194091067155d0e17aca48d395f /activesupport/lib/active_support/core_ext/hash.rb
parentc1007377ba010448e55030c37f3fee24208e9912 (diff)
downloadrails-8ae68efcf84d9c9927c4db7dfeb0f41693b9e555.tar.gz
rails-8ae68efcf84d9c9927c4db7dfeb0f41693b9e555.tar.bz2
rails-8ae68efcf84d9c9927c4db7dfeb0f41693b9e555.zip
Added Hash#reverse_merge, Hash#reverse_merge!, and Hash#reverse_update to ease the use of default options. Added :connector and :skip_last_comma options to Array#to_sentence
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash.rb b/activesupport/lib/active_support/core_ext/hash.rb
index e899d3e1e2..f16368b18b 100644
--- a/activesupport/lib/active_support/core_ext/hash.rb
+++ b/activesupport/lib/active_support/core_ext/hash.rb
@@ -1,7 +1,9 @@
require File.dirname(__FILE__) + '/hash/keys'
require File.dirname(__FILE__) + '/hash/indifferent_access'
+require File.dirname(__FILE__) + '/hash/reverse_merge'
class Hash #:nodoc:
include ActiveSupport::CoreExtensions::Hash::Keys
include ActiveSupport::CoreExtensions::Hash::IndifferentAccess
+ include ActiveSupport::CoreExtensions::Hash::ReverseMerge
end