From 173ee14c3d95238cfb828400862a24a14aec600f Mon Sep 17 00:00:00 2001 From: Matias Flores Date: Sun, 27 Sep 2009 16:14:40 -0300 Subject: Prefer tap to returning Signed-off-by: Michael Koziarski [#3280 state:committed] --- actionmailer/lib/action_mailer/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/lib/action_mailer/helpers.rb') 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 -- cgit v1.2.3