Browse files

unnecessary 'examples' noise in Hash#assert_valid_keys docs

  • Loading branch information...
1 parent cb61f57 commit 817f9e64ee4e5b02efd9b4047c23340bf4b75586 Francesco Rodriguez committed May 13, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 activesupport/lib/active_support/core_ext/hash/keys.rb
View
1 activesupport/lib/active_support/core_ext/hash/keys.rb
@@ -45,7 +45,6 @@ def symbolize_keys!
# Note that keys are NOT treated indifferently, meaning if you use strings for keys but assert symbols
# as keys, this will fail.
#
- # ==== Examples
# { :name => 'Rob', :years => '28' }.assert_valid_keys(:name, :age) # => raises "ArgumentError: Unknown key: years"
# { :name => 'Rob', :age => '28' }.assert_valid_keys('name', 'age') # => raises "ArgumentError: Unknown key: name"
# { :name => 'Rob', :age => '28' }.assert_valid_keys(:name, :age) # => passes, raises nothing

0 comments on commit 817f9e6

Please sign in to comment.