aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-18 22:13:49 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-18 22:13:49 -0500
commit255cefbff44d0bf0faeec43a5112e88b7c4424c2 (patch)
tree828b3a308d2e95508dd29f1217c94fdcb87daa9c /activesupport/lib
parent166409337a6bf8c1d57ef8fa8cc8e364f17bb468 (diff)
downloadrails-255cefbff44d0bf0faeec43a5112e88b7c4424c2.tar.gz
rails-255cefbff44d0bf0faeec43a5112e88b7c4424c2.tar.bz2
rails-255cefbff44d0bf0faeec43a5112e88b7c4424c2.zip
fix Hash#slice code example [ci skip]
Diffstat (limited to 'activesupport/lib')
-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 f0c78656f2..45fec57009 100644
--- a/activesupport/lib/active_support/core_ext/hash/slice.rb
+++ b/activesupport/lib/active_support/core_ext/hash/slice.rb
@@ -3,7 +3,7 @@ class Hash
# limiting an options hash to valid keys before passing to a method:
#
# def search(criteria = {})
- # assert_valid_keys(:mass, :velocity, :time)
+ # criteria.assert_valid_keys(:mass, :velocity, :time)
# end
#
# search(options.slice(:mass, :velocity, :time))