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

Move grape initializer into reloader

Oliver Günther6578ea442393
diff --git a/config/initializers/grape.rb b/config/initializers/grape.rb
index 3c86ab4a638..d3b68e29b2f 100644
--- a/config/initializers/grape.rb
+++ b/config/initializers/grape.rb
@@ -25,9 +25,10 @@
#
# See COPYRIGHT and LICENSE files for more details.
#++
-
-module Grape
- class Endpoint
- include ::API::V3::Utilities::PathHelper
+Rails.application.reloader.to_prepare do
+ module Grape
+ class Endpoint
+ include ::API::V3::Utilities::PathHelper
+ end
end
end