Class: ActiveRecord::AsynchronousQueriesTracker::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/asynchronous_queries_tracker.rb', line 21

def active?
  @active
end

#finalizeObject



25
26
27
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/asynchronous_queries_tracker.rb', line 25

def finalize
  @active = false
end