mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use super wherever possible in ActionController::Helpers#helper
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user