diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-13 12:45:25 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-13 12:45:25 -0500 |
commit | 817f9e64ee4e5b02efd9b4047c23340bf4b75586 (patch) | |
tree | 17923a17b8492c10a23f7f3489a9f55f8512d46d | |
parent | cb61f57a02488c92e1dc8cc8e8fa52ed5f249955 (diff) | |
download | rails-817f9e64ee4e5b02efd9b4047c23340bf4b75586.tar.gz rails-817f9e64ee4e5b02efd9b4047c23340bf4b75586.tar.bz2 rails-817f9e64ee4e5b02efd9b4047c23340bf4b75586.zip |
unnecessary 'examples' noise in Hash#assert_valid_keys docs
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/keys.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/keys.rb b/activesupport/lib/active_support/core_ext/hash/keys.rb index f72582571f..057fff05e3 100644 --- a/activesupport/lib/active_support/core_ext/hash/keys.rb +++ b/activesupport/lib/active_support/core_ext/hash/keys.rb @@ -45,7 +45,6 @@ class Hash # 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 |