aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-10-07 00:33:13 -1000
committerYehuda Katz <wycats@gmail.com>2009-10-07 00:33:13 -1000
commit3916f0340e8714d36a64162be793192849a9e51f (patch)
tree31a1c5f853cf174a6f25c5765b7ce7d601e9c67f /actionpack/lib
parente57197a9679d5d7a682fc73f12c9f04e067e85cc (diff)
downloadrails-3916f0340e8714d36a64162be793192849a9e51f.tar.gz
rails-3916f0340e8714d36a64162be793192849a9e51f.tar.bz2
rails-3916f0340e8714d36a64162be793192849a9e51f.zip
Not calling a private method anymore
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/base.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 01f33203ed..664cc3b562 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -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