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

fix resolution of Setting::Callbacks

Christophe Bliard823900e4ec59
diff --git a/app/models/setting.rb b/app/models/setting.rb
index 668b59f34b0..2edb8019eb0 100644
--- a/app/models/setting.rb
+++ b/app/models/setting.rb
@@ -29,7 +29,7 @@
#++
class Setting < ApplicationRecord
- extend Callbacks
+ extend CallbacksHelper
extend Aliases
DATE_FORMATS = [
diff --git a/app/models/setting/callbacks.rb b/app/models/setting/callbacks_helper.rb
similarity index 98%
rename from app/models/setting/callbacks.rb
rename to app/models/setting/callbacks_helper.rb
index affd8809052..bdd677a97f0 100644
--- a/app/models/setting/callbacks.rb
+++ b/app/models/setting/callbacks_helper.rb
@@ -29,7 +29,7 @@
#++
class Setting
- module Callbacks
+ module CallbacksHelper
# register a callback for a setting named #name
def register_callback(name, &callback)
# register the block with the underlying notifications system