Remove "RenderModel" from various comments throughout the code (#4814)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
3fd412e962
commit
47f27e8eec
@@ -7,7 +7,7 @@ using System.Web.Mvc;
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom ActionMethodSelector which will ensure that the RenderMvcController.Index(RenderModel model) action will be executed
|
||||
/// A custom ActionMethodSelector which will ensure that the RenderMvcController.Index(ContentModel model) action will be executed
|
||||
/// if the
|
||||
/// </summary>
|
||||
internal class RenderIndexActionSelectorAttribute : ActionMethodSelectorAttribute
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Umbraco.Web.Mvc
|
||||
internal void SetupRouteDataForRequest(ContentModel contentModel, RequestContext requestContext, PublishedRequest frequest)
|
||||
{
|
||||
//put essential data into the data tokens, the 'umbraco' key is required to be there for the view engine
|
||||
requestContext.RouteData.DataTokens.Add(Core.Constants.Web.UmbracoDataToken, contentModel); //required for the RenderModelBinder and view engine
|
||||
requestContext.RouteData.DataTokens.Add(Core.Constants.Web.UmbracoDataToken, contentModel); //required for the ContentModelBinder and view engine
|
||||
requestContext.RouteData.DataTokens.Add(Core.Constants.Web.PublishedDocumentRequestDataToken, frequest); //required for RenderMvcController
|
||||
requestContext.RouteData.DataTokens.Add(Core.Constants.Web.UmbracoContextDataToken, UmbracoContext); //required for UmbracoViewPage
|
||||
}
|
||||
@@ -233,7 +233,7 @@ namespace Umbraco.Web.Mvc
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a RouteDefinition object based on the current renderModel
|
||||
/// Returns a RouteDefinition object based on the current content request
|
||||
/// </summary>
|
||||
/// <param name="requestContext"></param>
|
||||
/// <param name="request"></param>
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Umbraco.Web.Mvc
|
||||
var umbracoToken = controllerContext.GetDataTokenInViewContextHierarchy(Core.Constants.Web.UmbracoDataToken);
|
||||
|
||||
// first check if we're rendering a partial view for the back office, or surface controller, etc...
|
||||
// anything that is not IUmbracoRenderModel as this should only pertain to Umbraco views.
|
||||
// anything that is not ContentModel as this should only pertain to Umbraco views.
|
||||
if (isPartial && !(umbracoToken is ContentModel))
|
||||
return true;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Umbraco.Web.Mvc
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The current RenderModel found for the request
|
||||
/// Everything related to the current content request including the requested content
|
||||
/// </summary>
|
||||
public PublishedRequest PublishedRequest { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user