aboutsummaryrefslogtreecommitdiffstats
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
parent166409337a6bf8c1d57ef8fa8cc8e364f17bb468 (diff)
downloadrails-255cefbff44d0bf0faeec43a5112e88b7c4424c2.tar.gz
rails-255cefbff44d0bf0faeec43a5112e88b7c4424c2.tar.bz2
rails-255cefbff44d0bf0faeec43a5112e88b7c4424c2.zip
fix Hash#slice code example [ci skip]
-rw-r--r--actionmailer/lib/action_mailer/base.rb2
-rw-r--r--activesupport/lib/active_support/core_ext/hash/slice.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 416f1f5296..8f014b31b6 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -5,7 +5,7 @@ require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/module/anonymous'
require 'action_mailer/log_subscriber'
-module ActionMailer # :nodoc:
+module ActionMailer # :notdoc:
# = Action Mailer
#
# Action Mailer allows you to send email from your application using a mailer
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))