From 9f92dd39849c353b8a69401a93ba7b13f93d669f Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sat, 29 Apr 2006 20:20:22 +0000 Subject: Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/lib/action_mailer/helpers.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actionmailer/lib/action_mailer') diff --git a/actionmailer/lib/action_mailer/helpers.rb b/actionmailer/lib/action_mailer/helpers.rb index ee7523a507..8176ba8a9a 100644 --- a/actionmailer/lib/action_mailer/helpers.rb +++ b/actionmailer/lib/action_mailer/helpers.rb @@ -11,14 +11,12 @@ module ActionMailer base.class_eval do # Wrap inherited to create a new master helper module for subclasses. class << self - alias_method :inherited_without_helper, :inherited - alias_method :inherited, :inherited_with_helper + alias_method_chain :inherited, :helper end # Wrap initialize_template_class to extend new template class # instances with the master helper module. - alias_method :initialize_template_class_without_helper, :initialize_template_class - alias_method :initialize_template_class, :initialize_template_class_with_helper + alias_method_chain :initialize_template_class, :helper end end -- cgit v1.2.3