instance method
keepalive
Ruby on Rails 8.1.4
Since v8.1.4Available in: v8.1.4 edge
Signature
keepalive()
No documentation comment.
Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 125
def keepalive
case keepalive = configuration_hash[:keepalive]
when false
nil
when nil, true
600.0 # default
else
keepalive = keepalive.to_f
keepalive if keepalive > 0.0
end
end
Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 125
· View on GitHub
· Improve this page
· Find usages on GitHub