OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix deprecator
Klaus Zandersd7962acf1f55
diff --git a/lib/deprecated_alias.rb b/lib/deprecated_alias.rbindex e42d1dec820..f4b7f4cbf2e 100644--- a/lib/deprecated_alias.rb+++ b/lib/deprecated_alias.rb@@ -28,9 +28,9 @@module DeprecatedAliasdef deprecated_alias(old_method, new_method)- define_method(old_method) do |*args, &block|+ define_method(old_method) do |*args, **kwargs, &block|OpenProject::Deprecation.replaced(old_method, new_method, caller)- send(new_method, *args, &block)+ send(new_method, *args, **kwargs, &block)endendenddiff --git a/lib/open_project/deprecation.rb b/lib/open_project/deprecation.rbindex b56437d3f41..5187f58f4f4 100644--- a/lib/open_project/deprecation.rb+++ b/lib/open_project/deprecation.rb@@ -63,7 +63,7 @@ module OpenProject::DeprecationMSG- ActiveSupport::Deprecation.warn message, called_from+ ActiveSupport::Deprecation.new.warn message, called_fromendendenddiff --git a/modules/bim/app/models/bim/ifc_models/ifc_model.rb b/modules/bim/app/models/bim/ifc_models/ifc_model.rbindex 802057a180a..e878716a430 100644--- a/modules/bim/app/models/bim/ifc_models/ifc_model.rb+++ b/modules/bim/app/models/bim/ifc_models/ifc_model.rb@@ -8,12 +8,12 @@ module Bim# not break the ancestor chain. Once this is fixed in rails, we can remove it.attribute :conversion_status, :integer- enum conversion_status: {+ enum :conversion_status, {pending: 0,processing: 1,completed: 2,error: 3- }.freeze+ }acts_as_attachable delete_permission: :manage_ifc_models,add_permission: :manage_ifc_models,