fixes #1127
This commit is contained in:
@@ -70,15 +70,4 @@ protected
|
|||||||
end
|
end
|
||||||
|
|
||||||
QueryTrace.attach_to :active_record
|
QueryTrace.attach_to :active_record
|
||||||
|
|
||||||
trap('QUIT') do
|
|
||||||
# Sending 2 backspace characters removes the ^\ that is
|
|
||||||
# printed to the console.
|
|
||||||
rm_noise = "\b\b"
|
|
||||||
|
|
||||||
QueryTrace.toggle!
|
|
||||||
puts "#{rm_noise}=> QueryTrace #{QueryTrace.status}"
|
|
||||||
end
|
|
||||||
|
|
||||||
QueryTrace.enable! if ENV['QUERY_TRACE']
|
QueryTrace.enable! if ENV['QUERY_TRACE']
|
||||||
puts "=> QueryTrace #{QueryTrace.status}; CTRL-\\ to toggle"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user