Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prefer tap to returning
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#3280 state:committed]
  • Loading branch information
Matias Flores authored and NZKoz committed Sep 28, 2009
1 parent c9318e9 commit 173ee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/helpers.rb
Expand Up @@ -106,7 +106,7 @@ def inherited_with_helper(child)
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
Expand Down

0 comments on commit 173ee14

Please sign in to comment.