Skip to content

Commit 21180ae

Browse files
committed
Pass model to BeforeRender
1 parent 818bf60 commit 21180ae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Build/CommonAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("1.8.7")]
19-
[assembly: AssemblyFileVersion("1.8.7")]
18+
[assembly: AssemblyVersion("1.9.0")]
19+
[assembly: AssemblyFileVersion("1.9.0")]
2020
//[assembly: AssemblyInformationalVersion("1.4.5-editlyalpha2")]

Griddly.Mvc/GriddlySettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public abstract class GriddlySettings
3636
/// First argument is the record set. Second argument is the posted form values.
3737
/// </summary>
3838
public static Func<GriddlyResult, NameValueCollection, ActionResult> HandleCustomExport = null;
39-
public static Action<GriddlySettings, HtmlHelper> BeforeRender = null;
39+
public static Action<GriddlySettings, GriddlyResultPage, HtmlHelper> BeforeRender = null;
4040
public static Action<GriddlySettings, ControllerContext> OnGriddlyResultExecuting = null;
4141

4242
public GriddlySettings()

Griddly/Views/Shared/Griddly/Griddly.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{
2424
if (GriddlySettings.BeforeRender != null)
2525
{
26-
GriddlySettings.BeforeRender(settings, Html);
26+
GriddlySettings.BeforeRender(settings, Model, Html);
2727
}
2828

2929
if (settings.AllowedFilterModes == null)

0 commit comments

Comments
 (0)