Permalink
Browse files

Well that was a bust

  • Loading branch information...
1 parent 995f570 commit 0aa0c37b59077d3f8b0d43c4d5faf86d40949f5f @wycats wycats committed Mar 19, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/lib/abstract_controller/rendering.rb
@@ -49,7 +49,11 @@ def view_context_class
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

0 comments on commit 0aa0c37

Please sign in to comment.