Skip to content

Commit

Permalink
Pass model to BeforeRender
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Aug 22, 2017
1 parent 818bf60 commit 21180ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.8.7")]
[assembly: AssemblyFileVersion("1.8.7")]
[assembly: AssemblyVersion("1.9.0")]
[assembly: AssemblyFileVersion("1.9.0")]
//[assembly: AssemblyInformationalVersion("1.4.5-editlyalpha2")]
2 changes: 1 addition & 1 deletion Griddly.Mvc/GriddlySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public abstract class GriddlySettings
/// First argument is the record set. Second argument is the posted form values.
/// </summary>
public static Func<GriddlyResult, NameValueCollection, ActionResult> HandleCustomExport = null;
public static Action<GriddlySettings, HtmlHelper> BeforeRender = null;
public static Action<GriddlySettings, GriddlyResultPage, HtmlHelper> BeforeRender = null;
public static Action<GriddlySettings, ControllerContext> OnGriddlyResultExecuting = null;

public GriddlySettings()
Expand Down
2 changes: 1 addition & 1 deletion Griddly/Views/Shared/Griddly/Griddly.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
if (GriddlySettings.BeforeRender != null)
{
GriddlySettings.BeforeRender(settings, Html);
GriddlySettings.BeforeRender(settings, Model, Html);
}

if (settings.AllowedFilterModes == null)
Expand Down

0 comments on commit 21180ae

Please sign in to comment.