提交 21df2bfc 编写于 作者: A Aaron Patterson

again, use Set#subtract

上级 ea359675
......@@ -190,7 +190,7 @@ def sweep #:nodoc:
end
# clean up after keys that could have been left over by calling reject! or shift on the flash
(@used - keys).each{ |k| @used.delete(k) }
@used.subtract(@used - keys)
end
# Convenience accessor for flash[:alert]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册