vendor/rails/actionmailer/lib/action_mailer/helpers.rb in radiant-0.9.1 vs vendor/rails/actionmailer/lib/action_mailer/helpers.rb in radiant-1.0.0.rc1
- old
+ new
@@ -103,10 +103,10 @@
end
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
end
end