mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Added Binder (full of Women) from int to qualityTypes
This commit is contained in:
parent
171e0cbb31
commit
d50091f3a4
@ -13,6 +13,8 @@
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Core;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using NzbDrone.Web.Helpers.Binders;
|
||||
|
||||
namespace NzbDrone.Web
|
||||
{
|
||||
@ -48,6 +50,8 @@ protected override void OnApplicationStarted()
|
||||
ViewEngines.Engines.Clear();
|
||||
ViewEngines.Engines.Add(razor);
|
||||
|
||||
ModelBinders.Binders.Add(typeof(QualityTypes), new QualityTypesBinder());
|
||||
|
||||
RegisterGlobalFilters(GlobalFilters.Filters);
|
||||
|
||||
Logger.Info("Fully initialized and ready.");
|
||||
@ -63,7 +67,6 @@ protected override IKernel CreateKernel()
|
||||
return dispatch.Kernel;
|
||||
}
|
||||
|
||||
|
||||
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
|
||||
{
|
||||
filters.Add(new HandleErrorAttribute());
|
||||
|
@ -154,6 +154,7 @@
|
||||
<Compile Include="App_Start\DataTablesMvc.cs" />
|
||||
<Compile Include="App_Start\MiniProfiler.cs" />
|
||||
<Compile Include="Controllers\SearchHistoryController.cs" />
|
||||
<Compile Include="Helpers\Binders\QualityTypesBinder.cs" />
|
||||
<Compile Include="Helpers\RenderActionHelper.cs" />
|
||||
<Compile Include="Helpers\Validation\RequiredIfAnyAttribute.cs" />
|
||||
<Compile Include="Helpers\Validation\RequiredIfAttribute.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user