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