method

build_view_context_class

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ClassMethods
build_view_context_class(klass, supports_path, routes, helpers) public

No documentation

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

Hide source
# File actionview/lib/action_view/rendering.rb, line 51
      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
Register or log in to add new notes.