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:
parent
598dc9f147
commit
732372c928
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue