diff options
author | schneems <richard.schneeman@gmail.com> | 2016-06-06 15:24:56 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2016-06-06 15:24:56 -0500 |
commit | a8f29f6455c303bbd321af248a730ca8b41f2f27 (patch) | |
tree | f79ec680745572bc8b7cbaa765e29ee53a6a63c1 /activesupport/test/abstract_unit.rb | |
parent | bd38e92b41e055d107f4e4af8b60dfa6a38f444a (diff) | |
download | rails-a8f29f6455c303bbd321af248a730ca8b41f2f27.tar.gz rails-a8f29f6455c303bbd321af248a730ca8b41f2f27.tar.bz2 rails-a8f29f6455c303bbd321af248a730ca8b41f2f27.zip |
Listen earlier in EventedFileUpdateChecker
Some files like routes.rb may be very large and vary between the initialization of the app and the first request. In these scenarios if we are using a forked process we cannot rely on the files to be unchanged between when the code is booted and the listener is started.
For that reason we start a listener on the main process immediately, when we detect that a process does not have a listener started we force the updated state to be true, so we are guaranteed to catch any changes made between the code initialization and the fork.
Diffstat (limited to 'activesupport/test/abstract_unit.rb')
0 files changed, 0 insertions, 0 deletions