mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Not calling a private method anymore
This commit is contained in:
parent
e57197a967
commit
3916f0340e
1 changed files with 5 additions and 2 deletions
|
@ -237,8 +237,11 @@ module ActionView #:nodoc:
|
||||||
if controller.class.respond_to?(:_helper_serial)
|
if controller.class.respond_to?(:_helper_serial)
|
||||||
klass = @views[controller.class._helper_serial] ||= Class.new(self) do
|
klass = @views[controller.class._helper_serial] ||= Class.new(self) do
|
||||||
name = controller.class.name.gsub(/::/, '__')
|
name = controller.class.name.gsub(/::/, '__')
|
||||||
Subclasses.remove_const(name) if Subclasses.const_defined?(name)
|
|
||||||
Subclasses.const_set(name, self)
|
Subclasses.class_eval do
|
||||||
|
remove_const(name) if const_defined?(name)
|
||||||
|
const_set(name, self)
|
||||||
|
end
|
||||||
|
|
||||||
if controller.respond_to?(:_helpers)
|
if controller.respond_to?(:_helpers)
|
||||||
include controller._helpers
|
include controller._helpers
|
||||||
|
|
Loading…
Reference in a new issue