提交 c7ba4c7c 编写于 作者: C Carlos Antonio da Silva

Skip fetching path if the iteration is going to be skipped

上级 5da8c162
......@@ -42,13 +42,13 @@ def setup_subscriptions
end
ActiveSupport::Notifications.subscribe("!render_template.action_view") do |name, start, finish, id, payload|
path = payload[:identifier]
next if payload[:virtual_path] # files don't have virtual path
path = payload[:identifier]
if path
@_files[path] += 1
@_files[path.split("/").last] += 1
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册