提交 69f97f46 编写于 作者: J José Valim

Use .find here as it is simpler and faster.

上级 31752f35
......@@ -1130,7 +1130,7 @@ def name_for_action(as, action)
end
candidate = name.select(&:present?).join("_").presence
candidate unless as.nil? && @set.routes.map(&:name).include?(candidate)
candidate unless as.nil? && @set.routes.find { |r| r.name == candidate }
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册