instance method max_age

Ruby on Rails 8.1.2

Since v8.1.2

Signature

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

Defined in ActiveRecord::DatabaseConfigurations::HashConfig

Type at least 2 characters to search.

↑↓ navigate · open · esc close