Zeitwerk
This commit is contained in:
parent
8cc664f0f7
commit
00a8817472
@ -158,7 +158,7 @@ module RedmineDmsf
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Apply the patch
|
# Apply the patch
|
||||||
if Redmine::Plugin.installed?('easy_crm')
|
if defined?(EasyPatchManager)
|
||||||
EasyPatchManager.register_model_patch 'EasyCrmCase', 'RedmineDmsf::Patches::EasyCrmCasePatch',
|
EasyPatchManager.register_model_patch 'EasyCrmCase', 'RedmineDmsf::Patches::EasyCrmCasePatch',
|
||||||
if: -> { EasyPluginLoader.plugin_active? 'easy_crm_2_0' }
|
if: -> { EasyPluginLoader.plugin_active? 'easy_crm_2_0' }
|
||||||
end
|
end
|
||||||
|
|||||||
@ -122,8 +122,9 @@ module RedmineDmsf
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Apply the patch
|
# Apply the patch
|
||||||
if Redmine::Plugin.installed?('easy_crm')
|
if defined?(EasyPatchManager)
|
||||||
EasyPatchManager.register_controller_patch 'EasyCrmCasesController',
|
EasyPatchManager.register_controller_patch 'EasyCrmCasesController',
|
||||||
'RedmineDmsf::Patches::EasyCrmCasesControllerPatch',
|
'RedmineDmsf::Patches::EasyCrmCasesControllerPatch',
|
||||||
prepend: true
|
prepend: true,
|
||||||
|
if: -> { Redmine::Plugin.installed? 'easy_crm_2_0' }
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user