diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-06-04 08:20:55 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-06-04 08:44:28 +0900 |
commit | a72f19a6c30cbb389f3d5916d205942d2ba965da (patch) | |
tree | 6cb8c58a55823d5f72a192f51266484f0a35a851 /activestorage/.gitignore | |
parent | c926ca46280aee795b98206dd0707a96b9423cc5 (diff) | |
download | rails-a72f19a6c30cbb389f3d5916d205942d2ba965da.tar.gz rails-a72f19a6c30cbb389f3d5916d205942d2ba965da.tar.bz2 rails-a72f19a6c30cbb389f3d5916d205942d2ba965da.zip |
Only clear cache when view paths are specified
Currently, `clear_cache_if_necessary` is executed even if view paths are
not set like `rails console`.
If the watcher class is `EventedFileUpdateChecker` and the watch
directories are empty, the application root directory will watch. This
is because listen uses the current directory as the default watch directory.
https://github.com/guard/listen/blob/8d85b4cd5788592799adea61af14a29bf2895d87/lib/listen/adapter/config.rb#L13
As a result, `node_modules` also watch. This cause a warning of `listen`.
Ref: https://github.com/rails/rails/pull/36377#issuecomment-498399576
Diffstat (limited to 'activestorage/.gitignore')
0 files changed, 0 insertions, 0 deletions