1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #39394 from vinistock/reduce_allocations_in_cache_expiry

Reduce allocations in action_view cache expiry
This commit is contained in:
Kasper Timm Hansen 2020-05-23 01:13:56 +02:00 committed by GitHub
commit b1f6d8c8d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,8 +42,7 @@ module ActionView
private
def dirs_to_watch
fs_paths = all_view_paths.grep(FileSystemResolver)
fs_paths.map(&:path).sort.uniq
all_view_paths.grep(FileSystemResolver).map!(&:path).tap(&:uniq!).sort!
end
def all_view_paths