instance method
max_age
Ruby on Rails edge
Since v8.1.4Available in: v8.1.4 edge
Signature
max_age()
No documentation comment.
Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 109
def max_age
case v = configuration_hash[:max_age]
when nil, false
Float::INFINITY
else
v = v.to_i
v > 0 ? v : Float::INFINITY
end
end
Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 109
· View on GitHub
· Improve this page
· Find usages on GitHub