From 1c28460ad7d2da2d2c9a200733960148ebf6f7f7 Mon Sep 17 00:00:00 2001 From: Luis Castro Date: Sat, 27 Jul 2019 14:40:08 +0200 Subject: [PATCH] feat(api): use active support reloader instead of callback --- config/initializers/reload_api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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