instance method
max_age
Ruby on Rails 8.1.2
Since v8.1.2Signature
max_age()
No documentation comment.
Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 95
def max_age
v = configuration_hash[:max_age]&.to_i
if v && v > 0
v
else
Float::INFINITY
end
end
Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 95
· View on GitHub
· Improve this page
· Find usages on GitHub