Class: ActiveRecord::AsynchronousQueriesTracker::Session

Inherits:
Object
  • Object
show all
Defined in:
activerecord/lib/active_record/asynchronous_queries_tracker.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeSession

Returns a new instance of Session.



17
18
19
# File 'activerecord/lib/active_record/asynchronous_queries_tracker.rb', line 17

def initialize
  @active = true
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'activerecord/lib/active_record/asynchronous_queries_tracker.rb', line 21

def active?
  @active
end

#finalizeObject



25
26
27
# File 'activerecord/lib/active_record/asynchronous_queries_tracker.rb', line 25

def finalize
  @active = false
end