Skip to content

Commit

Permalink
unnecessary 'examples' noise in Hash#assert_valid_keys docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Rodriguez committed May 13, 2012
1 parent cb61f57 commit 817f9e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion activesupport/lib/active_support/core_ext/hash/keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 817f9e6

Please sign in to comment.