Skip to content

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

use delegation

ulfertsfa755cb2588d
diff --git a/app/models/queries/projects/filters/any_stage_or_gate_filter.rb b/app/models/queries/projects/filters/any_stage_or_gate_filter.rb
index c60869dc209..95c3afe0fd5 100644
--- a/app/models/queries/projects/filters/any_stage_or_gate_filter.rb
+++ b/app/models/queries/projects/filters/any_stage_or_gate_filter.rb
@@ -153,7 +153,5 @@ class Queries::Projects::Filters::AnyStageOrGateFilter < Queries::Projects::Filt
beginning_of_week + 7.days
end
- def connection
- ActiveRecord::Base.connection
- end
+ delegate :connection, to: :"ActiveRecord::Base"
end