class method
self.runtime
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v7.1.6Signature
self.runtime()
No documentation comment.
Source
# File activerecord/lib/active_record/log_subscriber.rb, line 7
def self.runtime
Thread.current["active_record_sql_runtime"] ||= 0
end
Defined in activerecord/lib/active_record/log_subscriber.rb line 7
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::LogSubscriber