feat(api): use active support reloader instead of callback

This commit is contained in:
Luis Castro 2019-07-27 14:40:08 +02:00
parent cf5792d4e5
commit 1c28460ad7
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639

View file

@ -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