Module: Debugbar::Tracker

Included in:
Debugbar
Defined in:
lib/debugbar.rb

Constant Summary collapse

SETTERS =
%i[request response headers meta].freeze
METHODS =
%i[inc_model add_query add_job add_cache add_log].freeze

Class Method Summary collapse

Class Method Details

.msg(msg, extra, source) ⇒ Object



50
51
52
53
54
55
56
57
# File 'lib/debugbar.rb', line 50

def msg(msg, extra, source)
  if Current.request.nil?
    puts "The current request is not set yet. Printing to STDOUT instead."
    puts msg, extra, source
  else
    Current.request.add_msg(msg, extra, source)
  end
end