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

bring back using registries explicitly for clarity

Ivan Kuchinf752884cfba8
diff --git a/config/initializers/acts_as_favorable.rb b/config/initializers/acts_as_favorable.rb
index a9826097a88..6ec2f1d50b6 100644
--- a/config/initializers/acts_as_favorable.rb
+++ b/config/initializers/acts_as_favorable.rb
@@ -3,5 +3,7 @@
# For development and non-eager load mode, we need to load models using acts_as_favorable manually
# as no eager loading takes place
Rails.application.config.to_prepare do
- Project
+ OpenProject::Acts::Favorable::Registry.add(
+ Project
+ )
end
diff --git a/config/initializers/acts_as_watchable.rb b/config/initializers/acts_as_watchable.rb
index 65511efba16..7097c990dec 100644
--- a/config/initializers/acts_as_watchable.rb
+++ b/config/initializers/acts_as_watchable.rb
@@ -3,11 +3,13 @@
# For development and non-eager load mode, we need to load models using acts_as_watchable manually
# as no eager loading takes place
Rails.application.config.to_prepare do
- Forum
- Meeting
- Message
- News
- Wiki
- WikiPage
- WorkPackage
+ OpenProject::Acts::Watchable::Registry.add(
+ Forum,
+ Meeting,
+ Message,
+ News,
+ Wiki,
+ WikiPage,
+ WorkPackage
+ )
end