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

just mention acts_as_favorable/acts_as_watchable models instead of explicitly adding to registry

Ivan Kuchinb406e5e34edd
diff --git a/config/initializers/acts_as_favorable.rb b/config/initializers/acts_as_favorable.rb
index 9b17d8f8b48..ad8c5af37d9 100644
--- a/config/initializers/acts_as_favorable.rb
+++ b/config/initializers/acts_as_favorable.rb
@@ -1,8 +1,7 @@
# Be sure to restart your server when you modify this file.
-# For development and non-eager load mode, we need to register the acts_as_favorable models manually
+# 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.after_initialize do
- OpenProject::Acts::Favorable::Registry
- .add(Project)
+ Project
end
diff --git a/config/initializers/acts_as_watchable.rb b/config/initializers/acts_as_watchable.rb
index 14d752ce61d..a5cc8d83be3 100644
--- a/config/initializers/acts_as_watchable.rb
+++ b/config/initializers/acts_as_watchable.rb
@@ -1,8 +1,13 @@
# Be sure to restart your server when you modify this file.
-# In development and non-eager loaded mode, we need to register the acts_as_watchable models manually
+# 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.after_initialize do
- OpenProject::Acts::Watchable::Registry
- .add(WorkPackage, Message, Forum, News, Meeting, Wiki, WikiPage)
+ Forum
+ Meeting
+ Message
+ News
+ Wiki
+ WikiPage
+ WorkPackage
end