diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-29 20:20:22 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-29 20:20:22 +0000 |
commit | 9f92dd39849c353b8a69401a93ba7b13f93d669f (patch) | |
tree | 115190ab4023a28f8dff3e54b42fa1c981bc7d14 /actionmailer/lib/action_mailer | |
parent | 995167ec2eced73f44d4f961349dbbee6b297210 (diff) | |
download | rails-9f92dd39849c353b8a69401a93ba7b13f93d669f.tar.gz rails-9f92dd39849c353b8a69401a93ba7b13f93d669f.tar.bz2 rails-9f92dd39849c353b8a69401a93ba7b13f93d669f.zip |
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
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/helpers.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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 |