From 255cefbff44d0bf0faeec43a5112e88b7c4424c2 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Tue, 18 Sep 2012 22:13:49 -0500 Subject: fix Hash#slice code example [ci skip] --- actionmailer/lib/action_mailer/base.rb | 2 +- activesupport/lib/active_support/core_ext/hash/slice.rb | 2 +- 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)) -- cgit v1.2.3