Flowdock
method

view_context_class

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: AbstractController::Rendering::ClassMethods
view_context_class() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/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?(:_helpers)
              include controller._helpers

              if controller.respond_to?(:_routes)
                include controller._routes.url_helpers
              end

              # TODO: Fix RJS to not require this
              self.helpers = controller._helpers
            end
          end
        end
      end
Register or log in to add new notes.