feat(api): use active support reloader instead of callback
This commit is contained in:
parent
cf5792d4e5
commit
1c28460ad7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue