1
0
Fork 0
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:
Yehuda Katz 2009-10-07 00:33:13 -10:00
parent e57197a967
commit 3916f0340e

View file

@ -237,8 +237,11 @@ module ActionView #:nodoc:
if controller.class.respond_to?(:_helper_serial)
klass = @views[controller.class._helper_serial] ||= Class.new(self) do
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)
include controller._helpers