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

Appease rubocop

Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
This commit is contained in:
John Hawthorn 2021-05-10 20:19:23 -07:00
parent ddb1ec2647
commit f441e433d4

View file

@ -164,9 +164,9 @@ module ActionView
# Remove trailing "/*"
prefixes = wildcard_dependencies.map { |query| query[0..-3] }
@view_paths.flat_map(&:all_template_paths).uniq.select { |path|
prefixes.include?(path.prefix)
}.map(&:to_s).sort
@view_paths.flat_map(&:all_template_paths).uniq.filter_map { |path|
path.to_s if prefixes.include?(path.prefix)
}.sort
end
def explicit_dependencies