From 0aa0c37b59077d3f8b0d43c4d5faf86d40949f5f Mon Sep 17 00:00:00 2001 From: wycats Date: Thu, 18 Mar 2010 22:55:44 -0700 Subject: Well that was a bust --- actionpack/lib/abstract_controller/rendering.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index cde14916f2..b251bd6405 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -49,7 +49,11 @@ module AbstractController Class.new(ActionView::Base) do if controller.respond_to?(:_helpers) include controller._helpers - include controller._router.url_helpers + + if controller.respond_to?(:_router) + include controller._router.url_helpers + end + # TODO: Fix RJS to not require this self.helpers = controller._helpers end -- cgit v1.2.3