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

Reduce allocations in action_view cache expiry

This commit is contained in:
Vinicius Stock 2020-05-22 14:31:57 -04:00 committed by Vinicius Stock
parent 598dc9f147
commit 732372c928
No known key found for this signature in database
GPG key ID: 2663369A79CCBEC9

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