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

inline array of operators

Ivan Kuchin9d460a4d4140
diff --git a/app/models/queries/operators.rb b/app/models/queries/operators.rb
index f3454c005db..fa60d90d36f 100644
--- a/app/models/queries/operators.rb
+++ b/app/models/queries/operators.rb
@@ -27,7 +27,7 @@
#++
module Queries::Operators
- operators = [
+ OPERATORS = [
Queries::Operators::GreaterOrEqual,
Queries::Operators::LessOrEqual,
Queries::Operators::Equals,
@@ -61,7 +61,5 @@ module Queries::Operators
Queries::Operators::Parent,
Queries::Operators::Children,
Queries::Operators::Child
- ]
-
- OPERATORS = operators.index_by { |o| o.symbol.to_s }.freeze
+ ].index_by { |o| o.symbol.to_s }.freeze
end