# File lib/abstract_controller/rendering.rb, line 46 def view_context_class @view_context_class ||= begin controller = self Class.new(ActionView::Base) do if controller.respond_to?(:_routes) include controller._routes.url_helpers end if controller.respond_to?(:_helpers) include controller._helpers # TODO: Fix RJS to not require this self.helpers = controller._helpers end end end end