Prefer tap to returning

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#3280 state:committed]
This commit is contained in:
Matias Flores 2009-09-27 16:14:40 -03:00 committed by Michael Koziarski
parent c9318e9010
commit 173ee14c3d
1 changed files with 1 additions and 1 deletions

View File

@ -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