module ActionView::Rendering::ClassMethods

def _helpers

def _helpers
end

def _routes

def _routes
end

def build_view_context_class(klass, supports_path, routes, helpers)

def build_view_context_class(klass, supports_path, routes, helpers)
  Class.new(klass) do
    if routes
      include routes.url_helpers(supports_path)
      include routes.mounted_helpers
    end
    if helpers
      include helpers
    end
  end
end

def view_context_class

def view_context_class
  klass = ActionView::LookupContext::DetailsKey.view_context_class(ActionView::Base)
  @view_context_class ||= build_view_context_class(klass, supports_path?, _routes, _helpers)
  if klass.changed?(@view_context_class)
    @view_context_class = build_view_context_class(klass, supports_path?, _routes, _helpers)
  end
  @view_context_class
end