diff --git a/lib/redmine_dmsf/patches/access_control_patch.rb b/lib/redmine_dmsf/patches/access_control_patch.rb index 6d2f0f8a..ed2d1751 100644 --- a/lib/redmine_dmsf/patches/access_control_patch.rb +++ b/lib/redmine_dmsf/patches/access_control_patch.rb @@ -48,9 +48,7 @@ end # Apply the patch if Redmine::Plugin.installed?('easy_extensions') EasyPatchManager.register_patch_to_be_first 'Redmine::Acts::Attachable::InstanceMethods', - 'RedmineDmsf::Patches::AccessControlPatch', - prepend: true, - first: true + 'RedmineDmsf::Patches::AccessControlPatch', prepend: true, first: true else Redmine::AccessControl.prepend RedmineDmsf::Patches::AccessControlPatch end diff --git a/lib/redmine_dmsf/patches/attachable_patch.rb b/lib/redmine_dmsf/patches/attachable_patch.rb index 5373ba12..4101f52b 100644 --- a/lib/redmine_dmsf/patches/attachable_patch.rb +++ b/lib/redmine_dmsf/patches/attachable_patch.rb @@ -37,9 +37,7 @@ end # Apply the patch if Redmine::Plugin.installed?('easy_extensions') EasyPatchManager.register_patch_to_be_first 'Redmine::Acts::Attachable::InstanceMethods', - 'RedmineDmsf::Patches::AttachablePatch', - prepend: true, - first: true + 'RedmineDmsf::Patches::AttachablePatch', prepend: true, first: true else Redmine::Acts::Attachable.prepend RedmineDmsf::Patches::AttachablePatch end diff --git a/lib/redmine_dmsf/patches/pdf_patch.rb b/lib/redmine_dmsf/patches/pdf_patch.rb index 9f6dddbe..6538dae4 100644 --- a/lib/redmine_dmsf/patches/pdf_patch.rb +++ b/lib/redmine_dmsf/patches/pdf_patch.rb @@ -43,10 +43,8 @@ end # Apply the patch if Redmine::Plugin.installed?('easy_extensions') - EasyPatchManager.register_patch_to_be_first 'Redmine::Export::PDF::ITCPDF', - 'RedmineDmsf::Patches::PdfPatch', - prepend: true, - first: true + EasyPatchManager.register_patch_to_be_first 'Redmine::Export::PDF::ITCPDF', 'RedmineDmsf::Patches::PdfPatch', + prepend: true, first: true else Redmine::Export::PDF::ITCPDF.prepend RedmineDmsf::Patches::PdfPatch end diff --git a/lib/redmine_dmsf/patches/queries_controller_patch.rb b/lib/redmine_dmsf/patches/queries_controller_patch.rb index f476125c..0663d079 100644 --- a/lib/redmine_dmsf/patches/queries_controller_patch.rb +++ b/lib/redmine_dmsf/patches/queries_controller_patch.rb @@ -40,9 +40,8 @@ end # Apply the patch if Redmine::Plugin.installed?('easy_extensions') - EasyPatchManager.register_controller_patch 'QueriesController', - 'RedmineDmsf::Patches::QueriesControllerPatch', - prepend: true + EasyPatchManager.register_controller_patch 'QueriesController', 'RedmineDmsf::Patches::QueriesControllerPatch', + prepend: true else QueriesController.prepend RedmineDmsf::Patches::QueriesControllerPatch end diff --git a/lib/redmine_dmsf/patches/search_controller_patch.rb b/lib/redmine_dmsf/patches/search_controller_patch.rb index 43688e31..00d5878c 100644 --- a/lib/redmine_dmsf/patches/search_controller_patch.rb +++ b/lib/redmine_dmsf/patches/search_controller_patch.rb @@ -39,7 +39,6 @@ end # Apply the patch if Redmine::Plugin.installed?(:easy_extensions) - EasyPatchManager.register_controller_patch 'SearchController', - 'RedmineDmsf::Patches::SearchControllerPatch', - prepend: true + EasyPatchManager.register_controller_patch 'SearchController', 'RedmineDmsf::Patches::SearchControllerPatch', + prepend: true end diff --git a/lib/redmine_dmsf/patches/search_patch.rb b/lib/redmine_dmsf/patches/search_patch.rb index c54ff96b..987d2386 100644 --- a/lib/redmine_dmsf/patches/search_patch.rb +++ b/lib/redmine_dmsf/patches/search_patch.rb @@ -48,9 +48,7 @@ end # Apply the patch if Redmine::Plugin.installed?('easy_extensions') EasyPatchManager.register_patch_to_be_first 'Redmine::Acts::Attachable::InstanceMethods', - 'RedmineDmsf::Patches::SearchPatch', - prepend: true, - first: true + 'RedmineDmsf::Patches::SearchPatch', prepend: true, first: true else Redmine::Search.prepend RedmineDmsf::Patches::SearchPatch end