Class: ActiveRecord::AsynchronousQueriesTracker::Session
- Inherits:
-
Object
- Object
- ActiveRecord::AsynchronousQueriesTracker::Session
- Defined in:
- lib/active_record/asynchronous_queries_tracker.rb
Overview
:nodoc:
Instance Method Summary collapse
- #active? ⇒ Boolean
- #finalize ⇒ Object
-
#initialize ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize ⇒ Session
Returns a new instance of Session.
17 18 19 |
# File 'lib/active_record/asynchronous_queries_tracker.rb', line 17 def initialize @active = true end |
Instance Method Details
#active? ⇒ Boolean
21 22 23 |
# File 'lib/active_record/asynchronous_queries_tracker.rb', line 21 def active? @active end |
#finalize ⇒ Object
25 26 27 |
# File 'lib/active_record/asynchronous_queries_tracker.rb', line 25 def finalize @active = false end |