mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -42,8 +42,8 @@ class Admin::DiagnosticsController < Admin::AdminController
|
||||
GC.start(full_mark: true)
|
||||
require 'objspace'
|
||||
|
||||
io = File.open("discourse-heap-#{SecureRandom.hex(3)}.json",'w')
|
||||
ObjectSpace.dump_all(:output => io)
|
||||
io = File.open("discourse-heap-#{SecureRandom.hex(3)}.json", 'w')
|
||||
ObjectSpace.dump_all(output: io)
|
||||
io.close
|
||||
|
||||
render plain: "HEAP DUMP:\n#{io.path}"
|
||||
|
Reference in New Issue
Block a user