aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/helpers.rb
diff options
context:
space:
mode:
authorMatias Flores <mflores@atlanware.com>2009-09-27 16:14:40 -0300
committerMichael Koziarski <michael@koziarski.com>2009-09-28 14:38:24 +1300
commit173ee14c3d95238cfb828400862a24a14aec600f (patch)
tree79b57b6dc6dc0bb19f6a15a7097a61c8f89cd0ef /actionmailer/lib/action_mailer/helpers.rb
parentc9318e9010712aeae33b1dd0e8bed4795ae37caf (diff)
downloadrails-173ee14c3d95238cfb828400862a24a14aec600f.tar.gz
rails-173ee14c3d95238cfb828400862a24a14aec600f.tar.bz2
rails-173ee14c3d95238cfb828400862a24a14aec600f.zip
Prefer tap to returning
Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3280 state:committed]
Diffstat (limited to 'actionmailer/lib/action_mailer/helpers.rb')
-rw-r--r--actionmailer/lib/action_mailer/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/helpers.rb b/actionmailer/lib/action_mailer/helpers.rb
index 1bb8682315..ecd8f0f5b6 100644
--- a/actionmailer/lib/action_mailer/helpers.rb
+++ b/actionmailer/lib/action_mailer/helpers.rb
@@ -106,7 +106,7 @@ module ActionMailer
private
# Extend the template class instance with our controller's helper module.
def initialize_template_class_with_helper(assigns)
- returning(template = initialize_template_class_without_helper(assigns)) do
+ initialize_template_class_without_helper(assigns).tap do |template|
template.extend self.class.master_helper_module
end
end