Class: Debugbar::Current
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- Debugbar::Current
- Defined in:
- lib/debugbar/current.rb
Instance Method Summary collapse
Instance Method Details
#new_request!(request_id) ⇒ Object
10 11 12 |
# File 'lib/debugbar/current.rb', line 10 def new_request!(request_id) self.request = Request.new(request_id) end |
#pop_request! ⇒ Object
14 15 16 |
# File 'lib/debugbar/current.rb', line 14 def pop_request! request.tap { self.request = nil } end |