diff --git a/config/initializers/reload_api.rb b/config/initializers/reload_api.rb index 2de95e95..41e476bc 100644 --- a/config/initializers/reload_api.rb +++ b/config/initializers/reload_api.rb @@ -5,7 +5,7 @@ if Rails.env.development? api_reloader = ActiveSupport::FileUpdateChecker.new(api_files) do Rails.application.reload_routes! end - ActionDispatch::Callbacks.to_prepare do + ActiveSupport::Reloader.to_prepare do api_reloader.execute_if_updated end -end \ No newline at end of file +end