aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-01 19:06:03 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-01 19:06:03 +0530
commit42ff22f33a8963f1a1352f98e83b9918aa1a160d (patch)
tree3f43a8acee3ab20de78c4c9e30792296fddd06e4 /activesupport/lib/active_support/core_ext/hash
parent3cc6995e714bc763b40eb3e1d710c1e5ded44384 (diff)
parent339602b219e1fd842599f6750eb965f327a995c4 (diff)
downloadrails-42ff22f33a8963f1a1352f98e83b9918aa1a160d.tar.gz
rails-42ff22f33a8963f1a1352f98e83b9918aa1a160d.tar.bz2
rails-42ff22f33a8963f1a1352f98e83b9918aa1a160d.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/slice.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/slice.rb b/activesupport/lib/active_support/core_ext/hash/slice.rb
index fdeea4c148..b862b5ae2a 100644
--- a/activesupport/lib/active_support/core_ext/hash/slice.rb
+++ b/activesupport/lib/active_support/core_ext/hash/slice.rb
@@ -18,7 +18,7 @@ class Hash
end
# Replaces the hash with only the given keys.
- # Returns a hash contained the removed key/value pairs
+ # Returns a hash containing the removed key/value pairs.
# {:a => 1, :b => 2, :c => 3, :d => 4}.slice!(:a, :b) # => {:c => 3, :d => 4}
def slice!(*keys)
keys.map! { |key| convert_key(key) } if respond_to?(:convert_key, true)