Merge pull request #1538 from RomanIOPSYS/1537-exempt-products-from-notifiable

Add redmine_products to obsolete plugin list
This commit is contained in:
Karel Pičman 2024-07-19 10:10:38 +02:00 committed by GitHub
commit 18301d2148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,9 +29,10 @@ module RedmineDmsf
# Return true if a plugin that overrides Redmine::Notifiable and use the deprecated method alias_method_chain is
# present.
# It is related especially to plugins made by AplhaNode and RedmineUP.
# It is related especially to plugins made by AlphaNode and RedmineUP.
def self.an_obsolete_plugin_present?
plugins = %w[easyproject/easy_plugins/easy_money redmine_questions redmine_db redmine_passwords redmine_resources]
plugins = %w[easyproject/easy_plugins/easy_money redmine_questions redmine_db redmine_passwords redmine_resources
redmine_products]
plugins.each do |plugin|
return true if Plugin.present?(plugin)
end