Browse files

Use super wherever possible in ActionController::Helpers#helper

  • Loading branch information...
1 parent 72a574b commit 8a336d01d2c403f0a2fb818edb8db836ddc367ef @lifo lifo committed May 23, 2009
Showing with 2 additions and 5 deletions.
  1. +2 −5 actionpack/lib/action_controller/new_base/helpers.rb
View
7 actionpack/lib/action_controller/new_base/helpers.rb
@@ -16,8 +16,6 @@ module Helpers
module ClassMethods
def inherited(klass)
- # klass.master_helper_module = Module.new
- # klass.master_helper_module.__send__ :include, master_helper_module
klass.__send__ :default_helper_module!
super
end
@@ -78,10 +76,9 @@ def helper(*args, &block)
end
end
- add_template_helper(class_name.constantize)
+ super class_name.constantize
else
- # Explcit 'return' here so that the supplied block ( if any ) doesn't get included twice
- return super
+ super args
end
end

0 comments on commit 8a336d0

Please sign in to comment.