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

refactor: make syntax more explicit

Christophe Bliard0138610c3c04
diff --git a/app/services/base_services/base_callable.rb b/app/services/base_services/base_callable.rb
index 28427062eb5..610434907c2 100644
--- a/app/services/base_services/base_callable.rb
+++ b/app/services/base_services/base_callable.rb
@@ -33,8 +33,8 @@ module BaseServices
include ::WithReversibleState
- def call(*params)
- self.params = params.first.to_h.deep_symbolize_keys
+ def call(params = {})
+ self.params = params.to_h.deep_symbolize_keys
run_callbacks(:call) do
perform(**self.params)