mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 13:02:47 +01:00
15 lines
550 B
C#
15 lines
550 B
C#
using System.Web.Mvc;
|
|
using System.Web.WebPages;
|
|
using NzbDrone.Web.Helpers;
|
|
using NzbDrone.Web.Models;
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.RegisterDatatablesModelBinder), "Start")]
|
|
|
|
namespace NzbDrone.Web.App_Start {
|
|
public static class RegisterDatatablesModelBinder {
|
|
public static void Start() {
|
|
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesParams)))
|
|
ModelBinders.Binders.Add(typeof(DataTablesParams), new DataTablesModelBinder());
|
|
}
|
|
}
|
|
} |