aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-03-18 22:21:25 -0700
committerwycats <wycats@gmail.com>2010-03-18 22:21:25 -0700
commit995f57033f5a36d9ddd3aa65f0f01cccbb6baf6e (patch)
tree24cb7558919e8ccdb8142c3bdbf0ac5710468da0 /actionpack/lib/abstract_controller
parenta5d80f84d269bba6b0f0802612f29df1ee09d720 (diff)
downloadrails-995f57033f5a36d9ddd3aa65f0f01cccbb6baf6e.tar.gz
rails-995f57033f5a36d9ddd3aa65f0f01cccbb6baf6e.tar.bz2
rails-995f57033f5a36d9ddd3aa65f0f01cccbb6baf6e.zip
We seem to have removed the URL helpers from ActionView subclasses...
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb1
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb6
2 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index 0cf904815a..319472c937 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -297,6 +297,7 @@ module AbstractController
def initialize(*)
@action_has_layout = true
+ super
end
def action_has_layout?
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index 58d339d563..cde14916f2 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -49,6 +49,7 @@ module AbstractController
Class.new(ActionView::Base) do
if controller.respond_to?(:_helpers)
include controller._helpers
+ include controller._router.url_helpers
# TODO: Fix RJS to not require this
self.helpers = controller._helpers
end
@@ -63,6 +64,11 @@ module AbstractController
@view_context_class || self.class.view_context_class
end
+ def initialize(*)
+ @view_context_class = nil
+ super
+ end
+
# An instance of a view class. The default view class is ActionView::Base
#
# The view class must have the following methods: