mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use super wherever possible in ActionController::Helpers#helper
This commit is contained in:
parent
72a574b507
commit
8a336d01d2
1 changed files with 2 additions and 5 deletions
|
@ -16,8 +16,6 @@ module ActionController
|
|||
|
||||
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 @@ module ActionController
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue